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;
|
server_name www.atat.codes atat.codes;
|
||||||
listen 8442;
|
listen 8442;
|
||||||
listen [::]:8442 ipv6only=on;
|
listen [::]:8442 ipv6only=on;
|
||||||
#if ($http_x_forwarded_proto != 'https') {
|
if ($http_x_forwarded_proto != 'https') {
|
||||||
# return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
#}
|
}
|
||||||
|
location /login-redirect {
|
||||||
|
return 301 https://auth.atat.codes$request_uri;
|
||||||
|
}
|
||||||
location /login-dev {
|
location /login-dev {
|
||||||
try_files $uri @appbasicauth;
|
try_files $uri @appbasicauth;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user