1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/overleaf_ynh.git synced 2024-09-03 19:56:27 +02:00
overleaf_ynh/conf/nginx.conf

45 lines
1.3 KiB
Nginx Configuration File
Raw Normal View History

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/ {
2024-01-23 12:10:07 +01:00
proxy_pass http://localhost:3026;
2022-04-23 19:59:10 +02:00
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;
2024-01-23 12:10:07 +01:00
}