1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/uptime-kuma_ynh.git synced 2024-10-01 13:34:58 +02:00

re-add port handling

This commit is contained in:
Hadrien 2021-11-02 01:47:00 +03:00
parent de396b3bbd
commit 822c6813f2
3 changed files with 4 additions and 6 deletions

View file

@ -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";

View file

@ -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

View file

@ -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
<!-- * Any known limitations, constrains or stuff not working, such as (but not limited to):
* requiring a full dedicated domain ?
* architectures not supported ?