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
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';
}

View file

@ -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

View file

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

View file

@ -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