parent
8b19f56ef8
commit
3a766d4ba5
@ -675,6 +675,9 @@ matrix_hookshot_container_http_host_bind_ports: matrix_hookshot_container_http_h
|
|||||||
|
|
||||||
matrix_hookshot_provisioning_enabled: "{{ true if matrix_hookshot_provisioning_secret and matrix_dimension_enabled else false}}"
|
matrix_hookshot_provisioning_enabled: "{{ true if matrix_hookshot_provisioning_secret and matrix_dimension_enabled else false}}"
|
||||||
|
|
||||||
|
matrix_hookshot_proxy_metrics: "{{ matrix_nginx_proxy_proxy_synapse_metrics }}"
|
||||||
|
matrix_hookshot_proxy_metrics_basic_auth_enabled: "{{ matrix_nginx_proxy_proxy_synapse_metrics_basic_auth_enabled }}"
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
#
|
#
|
||||||
# /matrix-bridge-hookshot
|
# /matrix-bridge-hookshot
|
||||||
|
@ -87,7 +87,7 @@
|
|||||||
- name: Generate Matrix hookshot proxying configuration for matrix-nginx-proxy
|
- name: Generate Matrix hookshot proxying configuration for matrix-nginx-proxy
|
||||||
set_fact:
|
set_fact:
|
||||||
matrix_hookshot_matrix_nginx_proxy_metrics_configuration: |
|
matrix_hookshot_matrix_nginx_proxy_metrics_configuration: |
|
||||||
{% if matrix_hookshot_metrics_enabled %}
|
{% if matrix_hookshot_metrics_enabled and matrix_hookshot_proxy_metrics %}
|
||||||
location {{ matrix_hookshot_metrics_endpoint }} {
|
location {{ matrix_hookshot_metrics_endpoint }} {
|
||||||
{% if matrix_nginx_proxy_enabled|default(False) %}
|
{% if matrix_nginx_proxy_enabled|default(False) %}
|
||||||
{# Use the embedded DNS resolver in Docker containers to discover the service #}
|
{# Use the embedded DNS resolver in Docker containers to discover the service #}
|
||||||
@ -99,7 +99,7 @@
|
|||||||
proxy_pass http://127.0.0.1:{{ matrix_hookshot_metrics_port }}/metrics;
|
proxy_pass http://127.0.0.1:{{ matrix_hookshot_metrics_port }}/metrics;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
{% if matrix_nginx_proxy_proxy_synapse_metrics_basic_auth_enabled %}
|
{% if matrix_hookshot_proxy_metrics_basic_auth_enabled %}
|
||||||
auth_basic "protected";
|
auth_basic "protected";
|
||||||
auth_basic_user_file /nginx-data/matrix-synapse-metrics-htpasswd;
|
auth_basic_user_file /nginx-data/matrix-synapse-metrics-htpasswd;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user