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

add $jwt_key

This commit is contained in:
Thomas 2024-04-10 22:08:18 +02:00 committed by GitHub
parent 399616bf73
commit e2226cd768
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View file

@ -1,8 +1,8 @@
WT_JWT_ENCRYPTION_KEY=
WT_JWT_ENCRYPTION_KEY="__JWT_KEY__"
WT_BIND="[::1]:__PORT__"
WT_LOGGING="true"
WT_DEBUG="false"
WT_DATABASE_DRIVER="sqlite"
WT_DSN="./database.db"
WT_REGISTRATION_DISABLED="false"
WT_SOCIALS_DISABLED="false"
WT_SOCIALS_DISABLED="true"

View file

@ -7,6 +7,11 @@
source _common.sh
source /usr/share/yunohost/helpers
# key for the .env __JWT_KEY__
jwt_key=$(ynh_string_random --length=45 | base64)
ynh_app_setting_set --app=$app --key=jwt_key --value=$jwt_key
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================