summaryrefslogtreecommitdiff
path: root/roles/nginx/auth/whawty-sso/base/templates
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2023-11-13 21:56:24 +0100
committerChristian Pointner <equinox@spreadspace.org>2023-11-13 21:56:24 +0100
commita0c1aa799d94c3ce0c697bfd6777e0233dd77d92 (patch)
tree0c2b858fc4526bc64edc1668da4580f8d54d6ef3 /roles/nginx/auth/whawty-sso/base/templates
parentadd role nginx/auth/whawty-sso (diff)
finalize whawty.nginx-sso roles
Diffstat (limited to 'roles/nginx/auth/whawty-sso/base/templates')
-rw-r--r--roles/nginx/auth/whawty-sso/base/templates/nginx.snippet.j24
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;
}