diff --git a/conf/nginx.conf b/conf/nginx.conf index f8b2429..27d0925 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -10,7 +10,7 @@ location ^~ __PATH__/ { # by default nginx times out connections in one minute proxy_read_timeout 1d; - # Include SSOWAT user panel. - include conf.d/yunohost_panel.conf.inc; - more_clear_input_headers 'Accept-Encoding'; + # Include SSOWAT user panel. + include conf.d/yunohost_panel.conf.inc; + more_clear_input_headers 'Accept-Encoding'; } diff --git a/conf/systemd.service b/conf/systemd.service index a6d5c3b..be121ee 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -6,16 +6,20 @@ After=network.target Type=simple User=__APP__ Group=__APP__ -WorkingDirectory=__FINALPATH__/ -Environment="PATH=__ENV_PATH__" -Environment="THELOUNGE_HOME=/home/yunohost.app/__APP__/" -Environment="NODE_ENV=production" +#WorkingDirectory=__FINALPATH__/ +#Environment="PATH=__ENV_PATH__" +#Environment="THELOUNGE_HOME=/home/yunohost.app/__APP__/" +#Environment="NODE_ENV=production" ExecStart=/usr/bin/yarn start -#ExecStart=__FINALPATH__/ start -Restart=on-failure -RestartSec=5 -StartLimitInterval=60s -StartLimitBurst=3 +ProtectSystem=yes +ProtectHome=yes +NoNewPrivileges=yes +PrivateTmp=yes + +#Restart=on-failure +#RestartSec=5 +#StartLimitInterval=60s +#StartLimitBurst=3 [Install] -WantedBy=default.target +WantedBy=multi-user.target diff --git a/manifest.json b/manifest.json index 5b2b1a8..a52ab8c 100644 --- a/manifest.json +++ b/manifest.json @@ -31,8 +31,7 @@ }, "multi_instance": false, "services": [ - "nginx", - "mysql" + "nginx" ], "arguments": { "install" : [ diff --git a/scripts/install b/scripts/install index d26f177..60560df 100644 --- a/scripts/install +++ b/scripts/install @@ -104,16 +104,16 @@ ynh_add_nginx_config #================================================= # CREATE DATA DIRECTORY #================================================= -ynh_script_progression --message="Creating a data directory..." +# ynh_script_progression --message="Creating a data directory..." -datadir=/home/yunohost.app/$app -ynh_app_setting_set --app=$app --key=datadir --value=$datadir +# datadir=/home/yunohost.app/$app +# ynh_app_setting_set --app=$app --key=datadir --value=$datadir -mkdir -p $datadir +# mkdir -p $datadir -chmod 750 "$datadir" -chmod -R o-rwx "$datadir" -chown -R $app:www-data "$datadir" +# chmod 750 "$datadir" +# chmod -R o-rwx "$datadir" +# chown -R $app:www-data "$datadir" #================================================= # SPECIFIC SETUP