mirror of
https://github.com/YunoHost-Apps/etherpad_ynh.git
synced 2024-09-03 18:36:10 +02:00
fix
This commit is contained in:
parent
38fc170df8
commit
05e37cd598
2 changed files with 7 additions and 6 deletions
|
@ -4,7 +4,7 @@ location __PATH__/ {
|
||||||
rewrite ^__PATH__$ __PATH__/ permanent;
|
rewrite ^__PATH__$ __PATH__/ permanent;
|
||||||
proxy_redirect / __PATH__/;
|
proxy_redirect / __PATH__/;
|
||||||
|
|
||||||
proxy_pass http://127.0.0.1:__PORT__;
|
proxy_pass http://127.0.0.1:__PORT__/;
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_pass_header Server;
|
proxy_pass_header Server;
|
||||||
|
@ -16,7 +16,7 @@ location __PATH__/socket.io {
|
||||||
proxy_redirect / __PATH__/;
|
proxy_redirect / __PATH__/;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|
||||||
proxy_pass http://127.0.0.1:__PORT__;
|
proxy_pass http://127.0.0.1:__PORT__/;
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_pass_header Server;
|
proxy_pass_header Server;
|
||||||
|
@ -31,7 +31,7 @@ location __PATH__/admin {
|
||||||
proxy_redirect / __PATH__/;
|
proxy_redirect / __PATH__/;
|
||||||
proxy_set_header X-Proxy-Path __PATH__;
|
proxy_set_header X-Proxy-Path __PATH__;
|
||||||
|
|
||||||
proxy_pass http://127.0.0.1:__PORT__;
|
proxy_pass http://127.0.0.1:__PORT__/;
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_pass_header Server;
|
proxy_pass_header Server;
|
||||||
|
@ -49,7 +49,7 @@ location __PATH__/admin-auth {
|
||||||
rewrite __PATH__/admin-auth/(.*) /admin-auth/$1 break;
|
rewrite __PATH__/admin-auth/(.*) /admin-auth/$1 break;
|
||||||
proxy_redirect / __PATH__/;
|
proxy_redirect / __PATH__/;
|
||||||
proxy_set_header X-Proxy-Path __PATH__;
|
proxy_set_header X-Proxy-Path __PATH__;
|
||||||
proxy_pass http://127.0.0.1:__PORT__;
|
proxy_pass http://127.0.0.1:__PORT__/;
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_pass_header Server;
|
proxy_pass_header Server;
|
||||||
|
|
|
@ -9,8 +9,9 @@ Group=__APP__
|
||||||
WorkingDirectory=__INSTALL_DIR__/
|
WorkingDirectory=__INSTALL_DIR__/
|
||||||
Environment="NODE_ENV=production"
|
Environment="NODE_ENV=production"
|
||||||
Environment="__YNH_NODE_LOAD_PATH__"
|
Environment="__YNH_NODE_LOAD_PATH__"
|
||||||
#ExecStart=__INSTALL_DIR__/bin/run.sh
|
Environment="ETHERPAD_PRODUCTION=true"
|
||||||
ExecStart=pnpm run prod
|
ExecStart=__INSTALL_DIR__/bin/run.sh
|
||||||
|
#ExecStart=pnpm run prod
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
# Sandboxing options to harden security
|
# Sandboxing options to harden security
|
||||||
|
|
Loading…
Reference in a new issue