From 05e37cd598187e30492ec6c6822d19cc1412189d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 7 Jun 2024 22:00:18 +0200 Subject: [PATCH] fix --- conf/nginx.conf | 8 ++++---- conf/systemd.service | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 444a207..6b28fe4 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -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; diff --git a/conf/systemd.service b/conf/systemd.service index a152a7b..cd96721 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -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