mirror of
https://github.com/YunoHost-Apps/planka_ynh.git
synced 2024-09-03 20:06:00 +02:00
Merge branch 'testing' of https://github.com/YunoHost-Apps/planka_ynh into testing
This commit is contained in:
commit
48a477e091
4 changed files with 3 additions and 5 deletions
|
@ -8,7 +8,7 @@ location __PATH__/ {
|
|||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
|
||||
location /socket.io/ {
|
||||
location /.io/ {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_pass http://127.0.0.1:__PORT_SOCKET__/;
|
||||
|
|
|
@ -9,7 +9,7 @@ Group=__APP__
|
|||
WorkingDirectory=__INSTALL_DIR__
|
||||
Environment="__YNH_NODE_LOAD_PATH__"
|
||||
Environment="NODE_ENV=production"
|
||||
ExecStart=__YNH_NPM__ start --prod
|
||||
ExecStart=__YNH_NODE__ __INSTALL_DIR__/app.js --port=__PORT__
|
||||
|
||||
# Sandboxing options to harden security
|
||||
# Depending on specificities of your service/app, you may need to tweak these
|
||||
|
|
|
@ -28,7 +28,7 @@ ldap = false
|
|||
sso = false
|
||||
|
||||
disk = "50M"
|
||||
ram.build = "50M"
|
||||
ram.build = "500M"
|
||||
ram.runtime = "50M"
|
||||
|
||||
[install]
|
||||
|
|
|
@ -20,7 +20,6 @@ lastname=$(yunohost user list --fields lastname --output-as json | jq -r .users.
|
|||
#=================================================
|
||||
ynh_script_progression --message="Installing dependencies..." --weight=10
|
||||
|
||||
# Install Nodejs
|
||||
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||
|
||||
#=================================================
|
||||
|
@ -80,7 +79,6 @@ popd
|
|||
#=================================================
|
||||
ynh_script_progression --message="Starting a systemd service..." --weight=1
|
||||
|
||||
# Start a systemd service
|
||||
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd"
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue