mirror of
https://github.com/YunoHost-Apps/bonfire_ynh.git
synced 2024-09-03 18:16:01 +02:00
Generate secrets + add S3 template (for later use)
This commit is contained in:
parent
bc8de61cc4
commit
f937d30d38
1 changed files with 9 additions and 2 deletions
|
@ -169,14 +169,21 @@ export MIX_ENV=prod FLAVOUR=classic
|
|||
|
||||
ynh_exec_warn_less just config
|
||||
# generate secrets
|
||||
ynh_exec_warn_less just secrets
|
||||
ynh_replace_string --match_string="SECRET_KEY_BASE=you-should-put-a-secure-string-here" --replace_string="SECRET_KEY_BASE=$(openssl rand -base64 128)" --target_file="$env_file"
|
||||
ynh_replace_string --match_string="SIGNING_SALT=you-should-put-a-different-secure-string-here" --replace_string="SIGNING_SALT=$(openssl rand -base64 128)" --target_file="$env_file"
|
||||
ynh_replace_string --match_string="ENCRYPTION_SALT=you-should-put-yet-another-secure-string-here" --replace_string="ENCRYPTION_SALT=$(openssl rand -base64 128)" --target_file="$env_file"
|
||||
|
||||
# Configure server ports
|
||||
ynh_replace_string --match_string="HOSTNAME=localhost" --replace_string="HOSTNAME=$domain" --target_file="$env_file"
|
||||
# TODO : mail service ?
|
||||
ynh_replace_string --match_string="SERVER_PORT=4000" --replace_string="SERVER_PORT^=$port" --target_file="$env_file"
|
||||
ynh_replace_string --match_string="PUBLIC_PORT=4000" --replace_string="PUBLIC_PORT=443" --target_file="$env_file"
|
||||
ynh_replace_string --match_string="" --replace_string="" --target_file="$env_file"
|
||||
|
||||
# TODO : Configure S3 - with proper Yunohost question during installation
|
||||
# UPLOADS_S3_BUCKET=
|
||||
# UPLOADS_S3_ACCESS_KEY_ID=
|
||||
# UPLOADS_S3_SECRET_ACCESS_KEY=
|
||||
|
||||
|
||||
#=================================================
|
||||
# Configure the release
|
||||
|
|
Loading…
Reference in a new issue