2022-07-29 21:30:38 +02:00
|
|
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
2021-09-21 18:27:40 +02:00
|
|
|
location __PATH__/ {
|
2019-07-27 19:13:39 +02:00
|
|
|
|
2022-01-06 14:07:07 +01:00
|
|
|
proxy_pass http://127.0.0.1:__PORT__/;
|
|
|
|
proxy_redirect / __PATH__/;
|
|
|
|
proxy_cookie_path / __PATH__/;
|
2019-01-09 09:31:49 +01:00
|
|
|
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";
|
2021-07-06 17:45:33 +02:00
|
|
|
|
|
|
|
# Include SSOWAT user panel.
|
|
|
|
include conf.d/yunohost_panel.conf.inc;
|
2019-07-27 19:13:39 +02:00
|
|
|
}
|
2021-08-08 10:37:10 +02:00
|
|
|
|
2022-01-06 14:41:24 +01:00
|
|
|
location /dns-query {
|
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_redirect off;
|
|
|
|
proxy_buffering on;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_read_timeout 6s;
|
|
|
|
proxy_connect_timeout 6s;
|
|
|
|
proxy_pass http://127.0.0.1:__PORT__/dns-query;
|
|
|
|
}
|