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:
parent
b605ff0c57
commit
49473b775c
1 changed files with 10 additions and 4 deletions
|
@ -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";
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue