|
|
|
@ -4,8 +4,9 @@
|
|
|
|
|
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-bot-maubot.service'] }}"
|
|
|
|
|
when: matrix_bot_maubot_enabled|bool
|
|
|
|
|
|
|
|
|
|
- block:
|
|
|
|
|
- name: Generate Maubot proxying configuration for matrix-nginx-proxy
|
|
|
|
|
set_fact:
|
|
|
|
|
ansible.builtin.set_fact:
|
|
|
|
|
matrix_bot_maubot_matrix_nginx_proxy_configuration: |
|
|
|
|
|
location ~ ^/(_matrix/maubot/.*) {
|
|
|
|
|
{% if matrix_nginx_proxy_enabled|default(False) %}
|
|
|
|
@ -25,7 +26,7 @@
|
|
|
|
|
when: matrix_bot_maubot_proxy_management_interface|bool
|
|
|
|
|
|
|
|
|
|
- name: Register Maubot's proxying configuration with matrix-nginx-proxy
|
|
|
|
|
set_fact:
|
|
|
|
|
ansible.builtin.set_fact:
|
|
|
|
|
matrix_nginx_proxy_proxy_matrix_additional_server_configuration_blocks: |
|
|
|
|
|
{{
|
|
|
|
|
matrix_nginx_proxy_proxy_matrix_additional_server_configuration_blocks|default([])
|
|
|
|
@ -35,7 +36,7 @@
|
|
|
|
|
when: matrix_bot_maubot_proxy_management_interface|bool
|
|
|
|
|
|
|
|
|
|
- name: Warn about reverse-proxying if matrix-nginx-proxy not used
|
|
|
|
|
debug:
|
|
|
|
|
ansible.builtin.debug:
|
|
|
|
|
msg: >-
|
|
|
|
|
NOTE: You've enabled Maubot but are not using the matrix-nginx-proxy
|
|
|
|
|
reverse proxy.
|
|
|
|
|