1
0
Fork 0
mirror of https://github.com/Luzifer/nginx-sso.git synced 2024-10-18 07:34:22 +00:00

Document auto-renewal

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-01-28 21:48:00 +01:00
parent 3db354abc8
commit 8b383f473f
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -36,6 +36,10 @@ server {
#auth_request_set $username $upstream_http_x_username; #auth_request_set $username $upstream_http_x_username;
#proxy_set_header X-User $username; #proxy_set_header X-User $username;
# Automatically renew SSO cookie on request
auth_request_set $cookie $upstream_http_set_cookie;
add_header Set-Cookie $cookie;
proxy_pass http://127.0.0.1:1720/; proxy_pass http://127.0.0.1:1720/;
} }