mirror of
https://github.com/YunoHost-Apps/mautrix_telegram_ynh.git
synced 2024-09-03 19:45:55 +02:00
simplify config generation
This commit is contained in:
parent
65e4ef8253
commit
67f34a368c
2 changed files with 3 additions and 7 deletions
|
@ -424,10 +424,10 @@ bridge:
|
||||||
# Telegram config
|
# Telegram config
|
||||||
telegram:
|
telegram:
|
||||||
# Get your own API keys at https://my.telegram.org/apps
|
# Get your own API keys at https://my.telegram.org/apps
|
||||||
api_id: __TELEGRAM_API_ID__
|
api_id: __APIID__
|
||||||
api_hash: __TELEGRAM_API_HASH__
|
api_hash: __APIHASH__
|
||||||
# (Optional) Create your own bot at https://t.me/BotFather
|
# (Optional) Create your own bot at https://t.me/BotFather
|
||||||
bot_token: __TELEGRAM_BOT_TOKEN__
|
bot_token: __BOTTOKEN__
|
||||||
|
|
||||||
# Telethon connection options.
|
# Telethon connection options.
|
||||||
connection:
|
connection:
|
||||||
|
|
|
@ -21,10 +21,6 @@ write_bridge_config () {
|
||||||
verify_server_ssl_certificates="true"
|
verify_server_ssl_certificates="true"
|
||||||
matrix_server_supports_asmux="false"
|
matrix_server_supports_asmux="false"
|
||||||
log_filename="/var/log/$app/$app.log"
|
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"
|
log_level="error"
|
||||||
ynh_add_config --template="config.yaml" --destination="$mautrix_config_path"
|
ynh_add_config --template="config.yaml" --destination="$mautrix_config_path"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue