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/ {
|
|
|
|
alias __FINALPATH__/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/ {
|
|
|
|
alias __FINALPATH__/live/services/web/public/minjs/;
|
|
|
|
expires 1y;
|
2022-04-19 20:31:41 +02:00
|
|
|
}
|
2022-04-23 19:59:10 +02:00
|
|
|
|
|
|
|
location __PATH__/img/ {
|
|
|
|
alias __FINALPATH__/live/services/web/public/img/;
|
|
|
|
expires 1y;
|
|
|
|
}
|