2022-04-19 20:31:41 +02:00
|
|
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
|
|
|
location __PATH__/ {
|
|
|
|
|
2022-04-23 19:59:10 +02:00
|
|
|
proxy_pass http://localhost:__PORT__; # The port must match the value of SHARELATEX_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_set_header X-Forwarded-Proto $scheme;
|
|
|
|
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;
|
|
|
|
}
|
2022-04-19 20:31:41 +02:00
|
|
|
|
2022-04-23 19:59:10 +02:00
|
|
|
location __PATH__/socket.io/ {
|
|
|
|
proxy_pass http://127.0.0.1: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/ {
|
2023-11-19 16:41:50 +01:00
|
|
|
alias __INSTALL_DIR__/live/services/web/public/stylesheets/;
|
2022-04-23 19:59:10 +02:00
|
|
|
expires 1y;
|
|
|
|
}
|
2022-04-19 20:31:41 +02:00
|
|
|
|
2022-04-23 19:59:10 +02:00
|
|
|
location __PATH__/minjs/ {
|
2023-11-19 16:41:50 +01:00
|
|
|
alias __INSTALL_DIR__/live/services/web/public/minjs/;
|
2022-04-23 19:59:10 +02:00
|
|
|
expires 1y;
|
2022-04-19 20:31:41 +02:00
|
|
|
}
|
2022-04-23 19:59:10 +02:00
|
|
|
|
|
|
|
location __PATH__/img/ {
|
2023-11-19 16:41:50 +01:00
|
|
|
alias __INSTALL_DIR__/live/services/web/public/img/;
|
2022-04-23 19:59:10 +02:00
|
|
|
expires 1y;
|
|
|
|
}
|