nginx.auth.conf: extract auth params to auth.conf
This commit is contained in:
parent
7c61acc16c
commit
49d5682869
5
config/include/auth.conf
Normal file
5
config/include/auth.conf
Normal file
@ -0,0 +1,5 @@
|
||||
auth_request /auth;
|
||||
auth_request_set $auth_cookie $upstream_http_set_cookie;
|
||||
add_header Set-Cookie $auth_cookie;
|
||||
auth_request_set $Authorization $upstream_http_Authorization;
|
||||
proxy_set_header Authorization $Authorization;
|
||||
@ -60,12 +60,9 @@ server {
|
||||
proxy_set_header Connection 'upgrade';
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
|
||||
include /etc/nginx/include/auth.conf;
|
||||
|
||||
auth_request /auth;
|
||||
auth_request_set $auth_cookie $upstream_http_set_cookie;
|
||||
add_header Set-Cookie $auth_cookie;
|
||||
auth_request_set $Authorization $upstream_http_Authorization;
|
||||
proxy_set_header Authorization $Authorization;
|
||||
}
|
||||
|
||||
location = /health {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user