mirror of
https://github.com/YunoHost-Apps/overleaf_ynh.git
synced 2024-09-03 19:56:27 +02:00
fix nginx
This commit is contained in:
parent
28b577d41d
commit
167f164663
1 changed files with 33 additions and 32 deletions
|
@ -4,12 +4,12 @@
|
||||||
internal;
|
internal;
|
||||||
}
|
}
|
||||||
|
|
||||||
location __PATH__/ {
|
location __PATH__/ {
|
||||||
|
|
||||||
# Set max upload size
|
# Set max upload size
|
||||||
client_max_body_size 50m;
|
client_max_body_size 50m;
|
||||||
|
|
||||||
proxy_pass http://127.0.0.1:__PORT__; # The port must match the value of SHARELATEX_PORT.
|
proxy_pass http://localhost:__PORT__; # The port must match the value of OVERLEAF_PORT.
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
|
@ -22,10 +22,10 @@
|
||||||
|
|
||||||
# Include SSOWAT user panel.
|
# Include SSOWAT user panel.
|
||||||
include conf.d/yunohost_panel.conf.inc;
|
include conf.d/yunohost_panel.conf.inc;
|
||||||
}
|
}
|
||||||
|
|
||||||
location __PATH__/socket.io/ {
|
location __PATH__/socket.io/ {
|
||||||
proxy_pass http://127.0.0.1:3026;
|
proxy_pass http://localhost:3026;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
|
@ -35,22 +35,23 @@
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_read_timeout 10m;
|
proxy_read_timeout 10m;
|
||||||
proxy_send_timeout 10m;
|
proxy_send_timeout 10m;
|
||||||
}
|
}
|
||||||
|
|
||||||
location __PATH__/stylesheets/ {
|
location __PATH__/stylesheets/ {
|
||||||
|
|
||||||
# Set max upload size
|
# Set max upload size
|
||||||
client_max_body_size 50m;
|
client_max_body_size 50m;
|
||||||
|
|
||||||
|
alias __INSTALL_DIR__/live/services/web/public/stylesheets/;
|
||||||
expires 1y;
|
expires 1y;
|
||||||
}
|
}
|
||||||
|
|
||||||
location __PATH__/minjs/ {
|
location __PATH__/minjs/ {
|
||||||
|
alias __INSTALL_DIR__/live/services/web/public/minjs/;
|
||||||
expires 1y;
|
expires 1y;
|
||||||
}
|
}
|
||||||
|
|
||||||
location __PATH__/img/ {
|
location __PATH__/img/ {
|
||||||
|
alias __INSTALL_DIR__/live/services/web/public/img/;
|
||||||
expires 1y;
|
expires 1y;
|
||||||
}
|
}
|
Loading…
Reference in a new issue