Enable redirects for login route and non-ssl traffic

This commit is contained in:
Devon Mackay 2018-08-08 10:49:26 -04:00
parent 5c647a5c41
commit df6c563262

View File

@ -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;
}