1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gotify_ynh.git synced 2024-09-03 20:36:26 +02:00

Merge pull request #13 from gougeon-s/master

Enhance security
This commit is contained in:
Clément 2020-06-01 21:42:15 +02:00 committed by GitHub
commit 3bc2f1fce7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -21,6 +21,6 @@ database: # for database see (configure database section)
defaultuser: # on database creation, gotify creates an admin user
name: __ADMINUSER__ # the username of the default user
pass: __ADMINPASS__ # the password of the default user
passstrength: 10 # the bcrypt password strength (higher = better but also slower)
passstrength: 12 # the bcrypt password strength (higher = better but also slower)
uploadedimagesdir: data/images # the directory for storing uploaded images
pluginsdir: data/plugins # the directory where plugin resides

View file

@ -139,7 +139,10 @@ ynh_store_file_checksum "$final_path/config.yml"
# Set permissions to app files
chown -R root: $final_path
mkdir $final_path/data
chown -R root:$app $final_path/*
chmod -R 550 $final_path/*
chown $app $final_path/data
chmod 770 $final_path/data
#=================================================
# ADVERTISE SERVICE IN ADMIN PANEL
@ -163,4 +166,5 @@ ynh_script_progression --message="Reloading nginx web server..." --weight=1
systemctl reload nginx
systemctl start $app
ynh_script_progression --message="Installation of $app completed" --last
ynh_script_progression --message="Installation of $app completed" --last
ynh_print_warn "Change the admin password after the first login or delete it in the config file (stored in plain text)"