From 822c6813f274cd38878a67fcde71871dd7856d02 Mon Sep 17 00:00:00 2001 From: Hadrien Date: Tue, 2 Nov 2021 01:47:00 +0300 Subject: [PATCH] re-add port handling --- conf/nginx.conf | 5 ++--- conf/systemd.service | 2 +- doc/DISCLAIMER.md | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 94b5e93..42b4bb9 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -9,12 +9,11 @@ location __PATH__/ { rewrite ^ https://$server_name$request_uri? permanent; } - # proxy_pass http://localhost:__PORT__; + proxy_pass http://localhost:__PORT__; + # https://github.com/louislam/uptime-kuma/wiki/Reverse-Proxy#nginx # proxy_set_header X-Real-IP $remote_addr; # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_pass http://localhost:3001/; proxy_http_version 1.1; - # https://github.com/louislam/uptime-kuma/wiki/Reverse-Proxy#nginx proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; diff --git a/conf/systemd.service b/conf/systemd.service index ce8750c..ae33d61 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,7 +7,7 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__FINALPATH__/ -ExecStart=/usr/local/n/versions/node/14.18.1/bin/node server/server.js +ExecStart=/usr/local/n/versions/node/14.18.1/bin/node server/server.js --port=__PORT__ StandardOutput=append:/var/log/__APP__/__APP__.log StandardError=inherit diff --git a/doc/DISCLAIMER.md b/doc/DISCLAIMER.md index e76f132..95bed74 100644 --- a/doc/DISCLAIMER.md +++ b/doc/DISCLAIMER.md @@ -1,10 +1,9 @@ - Not working yet - Requires a full dedicated domain -- Uses N to install specific nodejs version - ARM architecture not supported - No upgrade script in this package -- does not properly use port reserved by yunohost - needs post-install +- Uses N to install specific nodejs version