simplify config generation

This commit is contained in:
Benedikt Tissot 2021-09-17 17:38:47 +02:00
parent 65e4ef8253
commit 67f34a368c
2 changed files with 3 additions and 7 deletions

View file

@ -424,10 +424,10 @@ bridge:
# Telegram config
telegram:
# Get your own API keys at https://my.telegram.org/apps
api_id: __TELEGRAM_API_ID__
api_hash: __TELEGRAM_API_HASH__
api_id: __APIID__
api_hash: __APIHASH__
# (Optional) Create your own bot at https://t.me/BotFather
bot_token: __TELEGRAM_BOT_TOKEN__
bot_token: __BOTTOKEN__
# Telethon connection options.
connection:

View file

@ -21,10 +21,6 @@ write_bridge_config () {
verify_server_ssl_certificates="true"
matrix_server_supports_asmux="false"
log_filename="/var/log/$app/$app.log"
# TODO rename these settings
telegram_api_id="$apiid"
telegram_api_hash="$apihash"
telegram_bot_token="$bottoken"
log_level="error"
ynh_add_config --template="config.yaml" --destination="$mautrix_config_path"
}