updates for Evo.Auth

This commit is contained in:
Chika 2022-12-07 00:08:29 +03:00
parent 120e9e32f8
commit 6fc1bea012

View File

@ -17,7 +17,13 @@ server {
include /etc/nginx/mime.types; include /etc/nginx/mime.types;
# AUTHENTICATION # AUTHENTICATION
error_page 401 /login; error_page 401 @error401;
location @error401 {
add_header Cache-Control 'no-store, no-cache';
rewrite ^ /login?uri=$request_uri permanent;
}
location = /auth { location = /auth {
internal; internal;
@ -28,7 +34,7 @@ server {
proxy_set_header X-Original-Remote-Addr $remote_addr; proxy_set_header X-Original-Remote-Addr $remote_addr;
proxy_set_header X-Original-Host $host; proxy_set_header X-Original-Host $host;
} }
location ~ ^/(login|signin|logout|get-user) { location ~ ^/(login|signin|logout|get-user) {
proxy_pass http://auth_server; proxy_pass http://auth_server;
} }