2022-04-19 20:31:41 +02:00
|
|
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
2024-04-24 20:11:54 +02:00
|
|
|
# block external access to prometheus /metrics
|
|
|
|
location /metrics/ {
|
|
|
|
internal;
|
|
|
|
}
|
|
|
|
|
2024-04-27 14:49:13 +02:00
|
|
|
location __PATH__/ {
|
2022-04-19 20:31:41 +02:00
|
|
|
|
2024-02-20 13:51:00 +01:00
|
|
|
# Set max upload size
|
|
|
|
client_max_body_size 50m;
|
|
|
|
|
2024-04-28 12:46:26 +02:00
|
|
|
proxy_pass http://localhost:__PORT__;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_read_timeout 10m;
|
|
|
|
proxy_send_timeout 10m;
|
2022-04-19 20:31:41 +02:00
|
|
|
|
2022-04-23 19:59:10 +02:00
|
|
|
# Include SSOWAT user panel.
|
|
|
|
include conf.d/yunohost_panel.conf.inc;
|
2024-04-27 14:49:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
location __PATH__/socket.io/ {
|
|
|
|
proxy_pass http://localhost:3026;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_read_timeout 10m;
|
|
|
|
proxy_send_timeout 10m;
|
|
|
|
}
|
2022-04-19 20:31:41 +02:00
|
|
|
|
2022-04-23 19:59:10 +02:00
|
|
|
location __PATH__/stylesheets/ {
|
2024-02-20 13:51:00 +01:00
|
|
|
|
|
|
|
# Set max upload size
|
|
|
|
client_max_body_size 50m;
|
|
|
|
|
2024-04-27 14:49:13 +02:00
|
|
|
alias __INSTALL_DIR__/live/services/web/public/stylesheets/;
|
|
|
|
expires 1y;
|
|
|
|
}
|
2022-04-19 20:31:41 +02:00
|
|
|
|
2022-04-23 19:59:10 +02:00
|
|
|
location __PATH__/minjs/ {
|
2024-04-27 14:49:13 +02:00
|
|
|
alias __INSTALL_DIR__/live/services/web/public/minjs/;
|
|
|
|
expires 1y;
|
|
|
|
}
|
2022-04-23 19:59:10 +02:00
|
|
|
|
|
|
|
location __PATH__/img/ {
|
2024-04-27 14:49:13 +02:00
|
|
|
alias __INSTALL_DIR__/live/services/web/public/img/;
|
|
|
|
expires 1y;
|
|
|
|
}
|