diff options
author | Christian Pointner <equinox@spreadspace.org> | 2023-11-13 21:56:24 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2023-11-13 21:56:24 +0100 |
commit | a0c1aa799d94c3ce0c697bfd6777e0233dd77d92 (patch) | |
tree | 0c2b858fc4526bc64edc1668da4580f8d54d6ef3 /roles/nginx/auth/whawty-sso/base | |
parent | add role nginx/auth/whawty-sso (diff) |
finalize whawty.nginx-sso roles
Diffstat (limited to 'roles/nginx/auth/whawty-sso/base')
-rw-r--r-- | roles/nginx/auth/whawty-sso/base/templates/nginx.snippet.j2 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/nginx/auth/whawty-sso/base/templates/nginx.snippet.j2 b/roles/nginx/auth/whawty-sso/base/templates/nginx.snippet.j2 index f8f67c45..87f71577 100644 --- a/roles/nginx/auth/whawty-sso/base/templates/nginx.snippet.j2 +++ b/roles/nginx/auth/whawty-sso/base/templates/nginx.snippet.j2 @@ -4,7 +4,7 @@ error_page 401 = @error401; location /auth { internal; - proxy_pass 127.0.0.1:{{ item.value.port }}/auth; + proxy_pass http://127.0.0.1:{{ item.value.port }}/auth; proxy_pass_request_body off; proxy_set_header Content-Length ""; proxy_set_header X-Origin-URI $request_uri; @@ -15,5 +15,5 @@ location /auth { } location @error401 { - return 302 {{ item.value.login_url }}?redir=$scheme://$http_host$request_uri; + return 303 {{ item.value.login_url }}?redir=$scheme://$http_host$request_uri; } |