mirror of
https://github.com/YunoHost-Apps/fittrackee_ynh.git
synced 2024-09-03 18:36:16 +02:00
Set key and language
This commit is contained in:
parent
eccf042586
commit
afab1ca191
3 changed files with 7 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
# SECURITY WARNING: keep the secret key used in production secret!
|
# SECURITY WARNING: keep the secret key used in production secret!
|
||||||
SECRET_KEY="7(2w1sedok=aznpq)ta1mc4i%4h=xx@hxwx*o57ctsuml0x%fr"
|
SECRET_KEY="__KEY__"
|
||||||
|
|
||||||
# SECURITY WARNING: don 't run with debug turned on in production!
|
# SECURITY WARNING: don 't run with debug turned on in production!
|
||||||
DEBUG=false
|
DEBUG=false
|
||||||
|
@ -7,13 +7,13 @@ USE_HTTPS=true
|
||||||
|
|
||||||
DOMAIN=__DOMAIN__
|
DOMAIN=__DOMAIN__
|
||||||
|
|
||||||
# Instance defualt language (see options at bookwyrm/settings.py "LANGUAGES"
|
# Instance default language (see options at bookwyrm/settings.py "LANGUAGES"
|
||||||
LANGUAGE_CODE="en-us"
|
LANGUAGE_CODE="__LANGUAGE__"
|
||||||
# Used for deciding which editions to prefer
|
# Used for deciding which editions to prefer
|
||||||
DEFAULT_LANGUAGE="English"
|
DEFAULT_LANGUAGE="English"
|
||||||
|
|
||||||
## Leave unset to allow all hosts
|
## Leave unset to allow all hosts
|
||||||
# ALLOWED_HOSTS="localhost,127.0.0.1,[::1]"
|
ALLOWED_HOSTS="localhost,127.0.0.1,[::1]"
|
||||||
|
|
||||||
MEDIA_ROOT=images/
|
MEDIA_ROOT=images/
|
||||||
|
|
||||||
|
|
|
@ -46,8 +46,8 @@
|
||||||
"en": "Choose the application language",
|
"en": "Choose the application language",
|
||||||
"fr": "Choisissez la langue de l'application"
|
"fr": "Choisissez la langue de l'application"
|
||||||
},
|
},
|
||||||
"choices": ["fr", "en"],
|
"choices": ["fr-fr", "en-us", "it-it", "pt-pt"],
|
||||||
"default": "fr"
|
"default": "fr-fr"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "admin",
|
"name": "admin",
|
||||||
|
|
|
@ -33,6 +33,7 @@ admin=$YNH_APP_ARG_ADMIN
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
admin_mail=$(ynh_user_get_info --username=$admin --key=username)
|
admin_mail=$(ynh_user_get_info --username=$admin --key=username)
|
||||||
|
key=$(ynh_string_random --length=32)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
|
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
|
||||||
|
|
Loading…
Reference in a new issue