1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/thelounge_ynh.git synced 2024-09-03 20:35:54 +02:00
This commit is contained in:
ericgaspar 2021-08-30 10:19:47 +02:00
parent 2327f13e66
commit 1907bb4f59
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 25 additions and 22 deletions

View file

@ -10,7 +10,7 @@ location ^~ __PATH__/ {
# by default nginx times out connections in one minute # by default nginx times out connections in one minute
proxy_read_timeout 1d; proxy_read_timeout 1d;
# 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'; more_clear_input_headers 'Accept-Encoding';
} }

View file

@ -6,16 +6,20 @@ After=network.target
Type=simple Type=simple
User=__APP__ User=__APP__
Group=__APP__ Group=__APP__
WorkingDirectory=__FINALPATH__/ #WorkingDirectory=__FINALPATH__/
Environment="PATH=__ENV_PATH__" #Environment="PATH=__ENV_PATH__"
Environment="THELOUNGE_HOME=/home/yunohost.app/__APP__/" #Environment="THELOUNGE_HOME=/home/yunohost.app/__APP__/"
Environment="NODE_ENV=production" #Environment="NODE_ENV=production"
ExecStart=/usr/bin/yarn start ExecStart=/usr/bin/yarn start
#ExecStart=__FINALPATH__/ start ProtectSystem=yes
Restart=on-failure ProtectHome=yes
RestartSec=5 NoNewPrivileges=yes
StartLimitInterval=60s PrivateTmp=yes
StartLimitBurst=3
#Restart=on-failure
#RestartSec=5
#StartLimitInterval=60s
#StartLimitBurst=3
[Install] [Install]
WantedBy=default.target WantedBy=multi-user.target

View file

@ -31,8 +31,7 @@
}, },
"multi_instance": false, "multi_instance": false,
"services": [ "services": [
"nginx", "nginx"
"mysql"
], ],
"arguments": { "arguments": {
"install" : [ "install" : [

View file

@ -104,16 +104,16 @@ ynh_add_nginx_config
#================================================= #=================================================
# CREATE DATA DIRECTORY # CREATE DATA DIRECTORY
#================================================= #=================================================
ynh_script_progression --message="Creating a data directory..." # ynh_script_progression --message="Creating a data directory..."
datadir=/home/yunohost.app/$app # datadir=/home/yunohost.app/$app
ynh_app_setting_set --app=$app --key=datadir --value=$datadir # ynh_app_setting_set --app=$app --key=datadir --value=$datadir
mkdir -p $datadir # mkdir -p $datadir
chmod 750 "$datadir" # chmod 750 "$datadir"
chmod -R o-rwx "$datadir" # chmod -R o-rwx "$datadir"
chown -R $app:www-data "$datadir" # chown -R $app:www-data "$datadir"
#================================================= #=================================================
# SPECIFIC SETUP # SPECIFIC SETUP