2022-04-16 22:59:26 +02:00
|
|
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
|
|
|
location __PATH__/ {
|
|
|
|
|
2024-01-23 23:44:36 +01:00
|
|
|
proxy_pass http://127.0.0.1:__PORT__;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "Upgrade";
|
2022-04-16 22:59:26 +02:00
|
|
|
|
2024-01-23 23:44:36 +01:00
|
|
|
# preserve client IP
|
2024-05-04 23:24:42 +02:00
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
2024-01-23 23:44:36 +01:00
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
2022-04-16 22:59:26 +02:00
|
|
|
|
2024-01-23 23:44:36 +01:00
|
|
|
client_max_body_size 50M;
|
2022-04-16 22:59:26 +02:00
|
|
|
|
2024-01-23 23:44:36 +01:00
|
|
|
# Include SSOWAT user panel's shortcut tile.
|
2022-04-16 22:59:26 +02:00
|
|
|
include conf.d/yunohost_panel.conf.inc;
|
|
|
|
}
|