Enable redirects for login route and non-ssl traffic
This commit is contained in:
parent
5c647a5c41
commit
df6c563262
@ -10,9 +10,12 @@ data:
|
||||
server_name www.atat.codes atat.codes;
|
||||
listen 8442;
|
||||
listen [::]:8442 ipv6only=on;
|
||||
#if ($http_x_forwarded_proto != 'https') {
|
||||
# return 301 https://$host$request_uri;
|
||||
#}
|
||||
if ($http_x_forwarded_proto != 'https') {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
location /login-redirect {
|
||||
return 301 https://auth.atat.codes$request_uri;
|
||||
}
|
||||
location /login-dev {
|
||||
try_files $uri @appbasicauth;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user