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:
parent
de396b3bbd
commit
822c6813f2
3 changed files with 4 additions and 6 deletions
|
@ -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";
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 ?
|
||||
|
|
Loading…
Reference in a new issue