1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/etherpad_ynh.git synced 2024-09-03 18:36:10 +02:00
This commit is contained in:
Éric Gaspar 2024-06-07 22:00:18 +02:00
parent 38fc170df8
commit 05e37cd598
2 changed files with 7 additions and 6 deletions

View file

@ -4,7 +4,7 @@ location __PATH__/ {
rewrite ^__PATH__$ __PATH__/ permanent;
proxy_redirect / __PATH__/;
proxy_pass http://127.0.0.1:__PORT__;
proxy_pass http://127.0.0.1:__PORT__/;
proxy_buffering off;
proxy_set_header Host $host;
proxy_pass_header Server;
@ -16,7 +16,7 @@ location __PATH__/socket.io {
proxy_redirect / __PATH__/;
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_set_header Host $host;
proxy_pass_header Server;
@ -31,7 +31,7 @@ location __PATH__/admin {
proxy_redirect / __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_set_header Host $host;
proxy_pass_header Server;
@ -49,7 +49,7 @@ location __PATH__/admin-auth {
rewrite __PATH__/admin-auth/(.*) /admin-auth/$1 break;
proxy_redirect / __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_set_header Host $host;
proxy_pass_header Server;

View file

@ -9,8 +9,9 @@ Group=__APP__
WorkingDirectory=__INSTALL_DIR__/
Environment="NODE_ENV=production"
Environment="__YNH_NODE_LOAD_PATH__"
#ExecStart=__INSTALL_DIR__/bin/run.sh
ExecStart=pnpm run prod
Environment="ETHERPAD_PRODUCTION=true"
ExecStart=__INSTALL_DIR__/bin/run.sh
#ExecStart=pnpm run prod
Restart=always
# Sandboxing options to harden security