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:
parent
399616bf73
commit
e2226cd768
2 changed files with 7 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
||||||
WT_JWT_ENCRYPTION_KEY=
|
WT_JWT_ENCRYPTION_KEY="__JWT_KEY__"
|
||||||
WT_BIND="[::1]:__PORT__"
|
WT_BIND="[::1]:__PORT__"
|
||||||
WT_LOGGING="true"
|
WT_LOGGING="true"
|
||||||
WT_DEBUG="false"
|
WT_DEBUG="false"
|
||||||
WT_DATABASE_DRIVER="sqlite"
|
WT_DATABASE_DRIVER="sqlite"
|
||||||
WT_DSN="./database.db"
|
WT_DSN="./database.db"
|
||||||
WT_REGISTRATION_DISABLED="false"
|
WT_REGISTRATION_DISABLED="false"
|
||||||
WT_SOCIALS_DISABLED="false"
|
WT_SOCIALS_DISABLED="true"
|
|
@ -7,6 +7,11 @@
|
||||||
source _common.sh
|
source _common.sh
|
||||||
source /usr/share/yunohost/helpers
|
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
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue