mirror of
				https://github.com/linuxserver/docker-swag.git
				synced 2025-10-31 21:17:42 +09:00 
			
		
		
		
	Unsimplify
This commit is contained in:
		| @@ -10,6 +10,16 @@ location ^~ /authelia { | ||||
|     include /config/nginx/resolver.conf; | ||||
|     set $upstream_authelia authelia; | ||||
|     proxy_pass http://$upstream_authelia:9091; | ||||
| } | ||||
|  | ||||
| # location for authelia auth requests | ||||
| location = /authelia/api/verify { | ||||
|     internal; | ||||
|  | ||||
|     include /config/nginx/proxy.conf; | ||||
|     include /config/nginx/resolver.conf; | ||||
|     set $upstream_authelia authelia; | ||||
|     proxy_pass http://$upstream_authelia:9091; | ||||
|  | ||||
|     ## Include the Set-Cookie header if present | ||||
|     auth_request_set $set_cookie $upstream_http_set_cookie; | ||||
| @@ -19,7 +29,7 @@ location ^~ /authelia { | ||||
|     proxy_set_header Content-Length ""; | ||||
| } | ||||
|  | ||||
| # Virtual location for authelia 401 redirects | ||||
| # virtual location for authelia 401 redirects | ||||
| location @authelia_proxy_signin { | ||||
|     internal; | ||||
|  | ||||
|   | ||||
| @@ -9,6 +9,16 @@ location ^~ /outpost.goauthentik.io { | ||||
|     include /config/nginx/resolver.conf; | ||||
|     set $upstream_authentik authentik-server; | ||||
|     proxy_pass http://$upstream_authentik:9000; | ||||
| } | ||||
|  | ||||
| # location for authentik auth requests | ||||
| location = /outpost.goauthentik.io/auth/nginx { | ||||
|     internal; | ||||
|  | ||||
|     include /config/nginx/proxy.conf; | ||||
|     include /config/nginx/resolver.conf; | ||||
|     set $upstream_authentik authentik-server; | ||||
|     proxy_pass http://$upstream_authentik:9000; | ||||
|  | ||||
|     ## Include the Set-Cookie header if present | ||||
|     auth_request_set $set_cookie $upstream_http_set_cookie; | ||||
| @@ -18,7 +28,7 @@ location ^~ /outpost.goauthentik.io { | ||||
|     proxy_set_header Content-Length ""; | ||||
| } | ||||
|  | ||||
| # Virtual location for authentik 401 redirects | ||||
| # virtual location for authentik 401 redirects | ||||
| location @goauthentik_proxy_signin { | ||||
|     internal; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user