feat(deploy): update Nginx configuration for Authentik proxy
- Added resolver and upstream variable for Authentik server in Nginx configuration. - Enhanced proxy_pass directive to use the defined upstream variable for better maintainability.
This commit is contained in:
parent
00944f0eb5
commit
de27906baa
@ -98,7 +98,9 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location /auth/ {
|
location /auth/ {
|
||||||
proxy_pass http://authentik-server:9000;
|
resolver 127.0.0.11 valid=10s ipv6=off;
|
||||||
|
set $authentik_upstream authentik-server:9000;
|
||||||
|
proxy_pass http://$authentik_upstream;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user