diff --git a/conf/nginx.conf b/conf/nginx.conf index 3e8a65e..137446b 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -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__/; diff --git a/conf/systemd.service b/conf/systemd.service index e5c8a67..8f0411f 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -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 diff --git a/manifest.toml b/manifest.toml index 2804582..851f1b0 100644 --- a/manifest.toml +++ b/manifest.toml @@ -28,7 +28,7 @@ ldap = false sso = false disk = "50M" -ram.build = "50M" +ram.build = "500M" ram.runtime = "50M" [install] diff --git a/scripts/install b/scripts/install index e670dfd..5061cd6 100755 --- a/scripts/install +++ b/scripts/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" #=================================================