Make exposing management UI configurable

This commit is contained in:
Julian-Samuel Gebühr 2022-06-24 12:39:51 +02:00
parent 8806598f51
commit 0ea146930b
2 changed files with 3 additions and 0 deletions

View file

@ -17,6 +17,7 @@ matrix_bot_maubot_container_config_dir: "/root/.config/"
matrix_bot_maubot_bot_server: "https://{{ matrix_server_fqn_matrix }}"
matrix_bot_maubot_proxy_management_interface: False
matrix_bot_maubot_expose_management_interface: True
matrix_bot_maubot_logging_level: info

View file

@ -25,7 +25,9 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-maubot \
{{ arg }} \
{% endfor %}
--network={{ matrix_docker_network }} \
{% if matrix_bot_maubot_expose_management_interface|bool %}
-p {{ matrix_bot_maubot_port }}:29316 \
{% endif %}
{{ matrix_bot_maubot_docker_image }}
ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-maubot 2>/dev/null || true'