mirror of
https://github.com/YunoHost-Apps/mautrix_whatsapp_ynh.git
synced 2024-09-03 19:46:01 +02:00
Modified registration with $whatsappbot
This commit is contained in:
parent
c15540c39b
commit
2c332efdee
1 changed files with 11 additions and 3 deletions
|
@ -264,14 +264,22 @@ ynh_replace_string --match_string="uri: mautrix-whatsapp.db" --replace_string="u
|
|||
|
||||
# The unique ID of this appservice.
|
||||
#id: whatsapp
|
||||
ynh_replace_string --match_string="id: whatsapp" --replace_string="id: $whatsappbot" --target_file="$final_path/config.yaml"
|
||||
#ynh_replace_string --match_string="id: whatsapp" --replace_string="id: $whatsappbot" --target_file="$final_path/config.yaml"
|
||||
# Appservice bot details.
|
||||
#bot:
|
||||
# Username of the appservice bot.
|
||||
#username: whatsappbot
|
||||
ynh_replace_string --match_string="username: whatsappbot" --replace_string="username: $whatsappbot" --target_file="$final_path/config.yaml"
|
||||
|
||||
|
||||
# Bridge config
|
||||
#bridge:
|
||||
# Localpart template of MXIDs for WhatsApp users.
|
||||
# {{.}} is replaced with the phone number of the WhatsApp user.
|
||||
#username_template: whatsapp_{{.}}
|
||||
#ynh_replace_string --match_string="username_template: whatsapp" --replace_string="username_template: $whatsappbot" --target_file="$final_path/config.yaml"
|
||||
# {{.Localpart}} is the MXID localpart and {{.Server}} is the MXID server part of the user.
|
||||
#community_template: whatsapp_{{.Localpart}}={{.Server}}
|
||||
#ynh_replace_string --match_string="community_template: whatsapp" --replace_string="community_template: $whatsappbot" --target_file="$final_path/config.yaml"
|
||||
|
||||
# Maximum number of connections. Mostly relevant for Postgres.
|
||||
ynh_replace_string --match_string="max_open_conns: 20" --replace_string="max_open_conns: 20" --target_file="$final_path/config.yaml"
|
||||
ynh_replace_string --match_string="max_idle_conns: 2" --replace_string="max_idle_conns: 2" --target_file="$final_path/config.yaml"
|
||||
|
|
Loading…
Add table
Reference in a new issue