Просмотр исходного кода

Use correct registration secret

pull/1894/head
Julian-Samuel Gebühr 3 лет назад
Родитель
Сommit
90447a2839
2 измененных файлов: 9 добавлений и 1 удалений
  1. +8
    -0
      group_vars/matrix_servers
  2. +1
    -1
      roles/matrix-bot-maubot/templates/config/config.yaml.j2

+ 8
- 0
group_vars/matrix_servers Просмотреть файл

@@ -1078,6 +1078,14 @@ matrix_bot_maubot_systemd_required_services_list: |
(['matrix-nginx-proxy.service'] if matrix_nginx_proxy_enabled else [])
}}

matrix_bot_maubot_registration_shared_secret: |-
{{
{
'synapse': matrix_synapse_registration_shared_secret,
'dendrite': matrix_dendrite_registration_shared_secret,
}[matrix_homeserver_implementation]
}}


######################################################################
#


+ 1
- 1
roles/matrix-bot-maubot/templates/config/config.yaml.j2 Просмотреть файл

@@ -77,7 +77,7 @@ homeservers:
# registration_shared_secret from synapse config
# You can leave this empty if you don't have access to the homeserver.
# When this is empty, `mbc auth --register` won't work, but `mbc auth` (login) will.
secret: {{ matrix_registration_shared_secret }}
secret: {{ matrix_bot_maubot_registration_shared_secret|to_json }}

# List of administrator users. Plaintext passwords will be bcrypted on startup. Set empty password
# to prevent normal login. Root is a special user that can't have a password and will always exist.


Загрузка…
Отмена
Сохранить