aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/README.md b/README.md
index b550c4a..2c743bb 100644
--- a/README.md
+++ b/README.md
@@ -20,6 +20,10 @@ Nginx config
auth_request /validate;
auth_request_set $auth_user $upstream_http_x_remote_user;
+ error_page 401 = @error_401;
+
+ location @error_401 {
+ return 302 https://id.horel.org/login?next=$schem://$http_host$request_uri;
location = /validate {
internal;
@@ -29,7 +33,7 @@ Nginx config
proxy_set_header X-Original-URI $request_uri;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
- proxy_pass http://127.0.0.1:8080/;
+ proxy_pass http://127.0.0.1:8080/validate;
}
}