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

Fix bug that prevented user with external nginx from launch (#2003)

* Fix bug that prevented user with external nginx from launch

The backslash was missing and prevented users from starting the bot

* Add necessary config for ext nginx to docs

* Add automatic config for ext nginx, adjust docs

* Remove unneeded and possibly puzzeling documentation
pull/2005/head
Julian-Samuel Gebühr 3 лет назад
committed by GitHub
Родитель
Сommit
32430de812
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: 4AEE18F83AFDEB23
3 измененных файлов: 3 добавлений и 8 удалений
  1. +0
    -7
      docs/configuring-playbook-bot-maubot.md
  2. +2
    -0
      group_vars/matrix_servers
  3. +1
    -1
      roles/matrix-bot-maubot/templates/systemd/matrix-bot-maubot.service.j2

+ 0
- 7
docs/configuring-playbook-bot-maubot.md Просмотреть файл

@@ -61,10 +61,3 @@ You can expand "Access token" to copy it.
![Obatining an admin access token with Element](assets/obtain_admin_access_token_element.png)

**IMPORTANT**: once you copy the token, just close the Matrix client window/tab. Do not "log out", as that would invalidate the token.








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

@@ -1125,6 +1125,8 @@ matrix_bot_maubot_registration_shared_secret: |-
}[matrix_homeserver_implementation]
}}

matrix_bot_maubot_management_interface_http_bind_port: "{{ '' if matrix_nginx_proxy_enabled else ('127.0.0.1:' + matrix_bot_maubot_management_interface_port | string) }}"

# Postgres is the default, except if not using `matrix_postgres` (internal postgres)
matrix_bot_maubot_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
matrix_bot_maubot_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'mxpup.dsc.db') | to_uuid }}"


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

@@ -28,7 +28,7 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-bot-maubot \
{% endfor %}
--network={{ matrix_docker_network }} \
{% if matrix_bot_maubot_management_interface_http_bind_port %}
-p {{ matrix_bot_maubot_management_interface_http_bind_port }}:{{ matrix_bot_maubot_management_interface_port }}
-p {{ matrix_bot_maubot_management_interface_http_bind_port }}:{{ matrix_bot_maubot_management_interface_port }} \
{% endif %}
{{ matrix_bot_maubot_docker_image }} \
python3 -m maubot -c /config/config.yaml --no-update


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