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

fixed maubot_admins config dict

pull/622/head
Sabine Laszakovits 4 лет назад
committed by Stuart Mumford
Родитель
Сommit
d6c10e425e
2 измененных файлов: 2 добавлений и 8 удалений
  1. +1
    -1
      roles/matrix-maubot/defaults/main.yml
  2. +1
    -7
      roles/matrix-maubot/templates/maubot_config.yaml.j2

+ 1
- 1
roles/matrix-maubot/defaults/main.yml Просмотреть файл

@@ -35,7 +35,7 @@ matrix_maubot_management_hostname: "0.0.0.0"
matrix_maubot_shared_secret: false
matrix_maubot_registration_shared_secret:
matrix_maubot_cs_url: "{{ matrix_homeserver_container_url }}"
matrix_maubot_admins: false
matrix_maubot_admins: {}

matrix_maubot_docker_image: dock.mau.dev/maubot/maubot:latest
matrix_maubot_docker_image_force_pull: "{{ matrix_maubot_docker_image.endswith(':latest') }}"

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

@@ -61,13 +61,7 @@ registration_secrets:

# 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.
admins:
root: ""
{% if matrix_maubot_admins %}
{% for user, password in matrix_maubot_admins %}
{{ user }}: '{{ password }}'
{% endfor %}
{% endif %}
admins: {{ matrix_maubot_admins | combine( {"root": ""} ) }}

# API feature switches.
api_features:


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