mirror of
https://github.com/YunoHost-Apps/overleaf_ynh.git
synced 2024-09-03 19:56:27 +02:00
44 lines
No EOL
1.3 KiB
Nginx Configuration File
44 lines
No EOL
1.3 KiB
Nginx Configuration File
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
|
location __PATH__/ {
|
|
|
|
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;
|
|
|
|
# Include SSOWAT user panel.
|
|
include conf.d/yunohost_panel.conf.inc;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
location __PATH__/stylesheets/ {
|
|
alias __INSTALL_DIR__/live/services/web/public/stylesheets/;
|
|
expires 1y;
|
|
}
|
|
|
|
location __PATH__/minjs/ {
|
|
alias __INSTALL_DIR__/live/services/web/public/minjs/;
|
|
expires 1y;
|
|
}
|
|
|
|
location __PATH__/img/ {
|
|
alias __INSTALL_DIR__/live/services/web/public/img/;
|
|
expires 1y;
|
|
} |