1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dex_ynh.git synced 2024-09-03 18:26:22 +02:00

Trick Nginx for the CI 😈

This commit is contained in:
Limezy 2022-03-26 17:47:15 +07:00
parent b605ff0c57
commit 49473b775c

View file

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