2022-03-27 05:07:11 +02:00
|
|
|
rewrite ^__PATH__$ __PATH__/;
|
2022-03-27 16:35:36 +02:00
|
|
|
location ~ __PATH__/$ {
|
2022-03-26 11:47:15 +01:00
|
|
|
|
|
|
|
default_type text/plain;
|
|
|
|
return 200 "This is where Dex is installed.";
|
|
|
|
}
|
|
|
|
|
|
|
|
location ~ __PATH__/.+ {
|
2022-03-23 09:15:13 +01:00
|
|
|
|
2022-03-23 11:03:13 +01:00
|
|
|
proxy_pass http://127.0.0.1:__PORT__;
|
|
|
|
proxy_redirect off;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Forwarded-Host $server_name;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
2022-03-26 11:47:15 +01:00
|
|
|
}
|