diff --git a/conf/nginx.conf b/conf/nginx.conf index 529ec2a..9aa049f 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,7 +1,13 @@ -#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; -location __PATH__/ { +rewrite ^__PATH__$ __PATH__/ permanent; + +location = __PATH__/ { + + default_type text/plain; + return 200 "This is where Dex is installed."; +} + +location ~ __PATH__/.+ { - # Force usage of https if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; } @@ -17,4 +23,4 @@ location __PATH__/ { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; -} +} \ No newline at end of file