Commit cf9ddd71c9
Verified · cmc
Layout: unified · split
linux/nginx/etc/nginx/custom.d/reverse_proxy/authelia.conf deleted −28
| @@ -1,28 +0,0 @@ | ||
| 1 | internal; | |
| 2 | set $upstream_authelia http://127.0.0.1:9092/api/verify; #change the IP and Port to match the IP and Port of your Authelia container | |
| 3 | proxy_pass_request_body off; | |
| 4 | proxy_pass $upstream_authelia; | |
| 5 | proxy_set_header Content-Length ""; | |
| 6 | ||
| 7 | # Timeout if the real server is dead | |
| 8 | proxy_next_upstream error timeout invalid_header http_500 http_502 http_503; | |
| 9 | client_body_buffer_size 128k; | |
| 10 | proxy_set_header Host $host; | |
| 11 | proxy_set_header X-Original-URL $scheme://$http_host$request_uri; | |
| 12 | proxy_set_header X-Real-IP $remote_addr; | |
| 13 | proxy_set_header X-Forwarded-For $remote_addr; | |
| 14 | proxy_set_header X-Forwarded-Proto $scheme; | |
| 15 | proxy_set_header X-Forwarded-Host $http_host; | |
| 16 | proxy_set_header X-Forwarded-Uri $request_uri; | |
| 17 | proxy_set_header X-Forwarded-Ssl on; | |
| 18 | proxy_redirect http:// $scheme://; | |
| 19 | proxy_http_version 1.1; | |
| 20 | proxy_set_header Connection ""; | |
| 21 | proxy_cache_bypass $cookie_session; | |
| 22 | proxy_no_cache $cookie_session; | |
| 23 | proxy_buffers 4 32k; | |
| 24 | ||
| 25 | send_timeout 5m; | |
| 26 | proxy_read_timeout 240; | |
| 27 | proxy_send_timeout 240; | |
| 28 | proxy_connect_timeout 240; | |
linux/nginx/etc/nginx/custom.d/reverse_proxy/authelia_request.conf deleted −10
| @@ -1,10 +0,0 @@ | ||
| 1 | auth_request /authelia; | |
| 2 | auth_request_set $target_url https://$http_host$request_uri; | |
| 3 | auth_request_set $user $upstream_http_remote_user; | |
| 4 | auth_request_set $email $upstream_http_remote_email; | |
| 5 | auth_request_set $groups $upstream_http_remote_groups; | |
| 6 | proxy_set_header Remote-User $user; | |
| 7 | proxy_set_header Remote-Email $email; | |
| 8 | proxy_set_header Remote-Groups $groups; | |
| 9 | ||
| 10 | error_page 401 =302 https://auth.zerolabs.sh/?rd=$target_url; | |