1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/invoiceninja_ynh.git synced 2024-09-03 19:26:22 +02:00

add api secret for mobile apps

This commit is contained in:
Sebastian Gumprich 2020-05-03 12:04:24 +02:00
parent abef56e3ea
commit 9e14b34904
2 changed files with 5 additions and 0 deletions

View file

@ -199,6 +199,7 @@ ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --ta
ynh_replace_string --match_string="__DB_USER__" --replace_string="$db_user" --target_file="$final_path/.env"
ynh_replace_string --match_string="__DB_PASS__" --replace_string="$db_pwd" --target_file="$final_path/.env"
ynh_replace_string --match_string="__API_SECRET__" --replace_string="$(ynh_string_random --length=32)" --target_file="$final_path/.env"
ynh_replace_string --match_string="__APP_KEY__" --replace_string="$(ynh_string_random --length=32)" --target_file="$final_path/.env"
ynh_replace_string --match_string="__PHANTOMJS_KEY__" --replace_string="$(ynh_string_random --length=32)" --target_file="$final_path/.env"

View file

@ -4,6 +4,10 @@ APP_LOCALE=__LANGUAGE__
APP_URL=https://__DOMAIN____PATH__/index.php
APP_KEY=__APP_KEY__
APP_CIPHER=AES-256-CBC
# used to connect with the mobile app
API_SECRET=__API_SECRET__
REQUIRE_HTTPS=true
DB_TYPE=mysql
DB_HOST=localhost