|
|
|
@@ -6,17 +6,20 @@ |
|
|
|
# If the matrix-synapse role is not used, these variables may not exist. |
|
|
|
- ansible.builtin.set_fact: |
|
|
|
matrix_synapse_container_extra_arguments: > |
|
|
|
{{ matrix_synapse_container_extra_arguments|default([]) }} |
|
|
|
+ |
|
|
|
["--mount type=bind,src={{ matrix_mautrix_wsproxy_config_path }}/registration.yaml,dst=/matrix-mautrix-wsproxy-registration.yaml,ro"] |
|
|
|
{{ |
|
|
|
matrix_synapse_container_extra_arguments | default([]) |
|
|
|
+ |
|
|
|
["--mount type=bind,src={{ matrix_mautrix_wsproxy_config_path }}/registration.yaml,dst=/matrix-mautrix-wsproxy-registration.yaml,ro"] |
|
|
|
}} |
|
|
|
|
|
|
|
matrix_synapse_app_service_config_files: > |
|
|
|
{{ matrix_synapse_app_service_config_files|default([]) }} |
|
|
|
+ |
|
|
|
{{ ["/matrix-mautrix-wsproxy-registration.yaml"] }} |
|
|
|
{{ |
|
|
|
matrix_synapse_app_service_config_files | default([]) |
|
|
|
+ |
|
|
|
["/matrix-mautrix-wsproxy-registration.yaml"] |
|
|
|
}} |
|
|
|
when: matrix_mautrix_wsproxy_enabled|bool |
|
|
|
|
|
|
|
|
|
|
|
- block: |
|
|
|
- name: Fail if matrix-nginx-proxy role already executed |
|
|
|
ansible.builtin.fail: |
|
|
|
@@ -34,11 +37,11 @@ |
|
|
|
{% if matrix_nginx_proxy_enabled|default(False) %} |
|
|
|
{# Use the embedded DNS resolver in Docker containers to discover the service #} |
|
|
|
resolver 127.0.0.11 valid=5s; |
|
|
|
set $backend "matrix-mautrix-wsproxy:{{ matrix_mautrix_wsproxy_port }}"; |
|
|
|
set $backend "matrix-mautrix-wsproxy:29331"; |
|
|
|
proxy_pass http://$backend; |
|
|
|
{% else %} |
|
|
|
{# Generic configuration for use outside of our container setup #} |
|
|
|
proxy_pass http://127.0.0.1:{{ matrix_mautrix_wsproxy_port }}; |
|
|
|
proxy_pass http://127.0.0.1:29331; |
|
|
|
{% endif %} |
|
|
|
} |
|
|
|
|
|
|
|
|