mirror of
https://github.com/YunoHost-Apps/scrumblr_ynh.git
synced 2024-09-03 20:16:29 +02:00
Fix
This commit is contained in:
parent
3a5f7e8d94
commit
7f59ca4448
2 changed files with 12 additions and 11 deletions
|
@ -1,11 +1,14 @@
|
||||||
location / {
|
location / {
|
||||||
|
|
||||||
proxy_pass http://localhost:__PORT__/;
|
proxy_pass http://127.0.0.1:__PORT__;
|
||||||
|
proxy_redirect off;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_buffering off;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
fastcgi_param REMOTE_USER $remote_user;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
client_max_body_size 50M;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Host $server_name;
|
||||||
|
|
||||||
# Include SSOWAT user panel.
|
# Include SSOWAT user panel.
|
||||||
include conf.d/yunohost_panel.conf.inc;
|
include conf.d/yunohost_panel.conf.inc;
|
||||||
|
more_clear_input_headers 'Accept-Encoding';
|
||||||
}
|
}
|
|
@ -9,10 +9,8 @@ Group=__APP__
|
||||||
WorkingDirectory=__FINALPATH__
|
WorkingDirectory=__FINALPATH__
|
||||||
Environment="PATH=__ENV_PATH__"
|
Environment="PATH=__ENV_PATH__"
|
||||||
Environment="NODE_ENV=production"
|
Environment="NODE_ENV=production"
|
||||||
ExecStart=__YNH_NPM__ server.js --port __PORT__
|
ExecStart=__YNH_NPM__ server.js --server:port=__PORT__
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
#node server.js --server:port=80
|
|
Loading…
Add table
Reference in a new issue