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

proxy hookshot metrics when proxying synapse metrics

see also #1527
pull/1505/head
HarHarLinks 4 лет назад
Родитель
Сommit
3a766d4ba5
2 измененных файлов: 5 добавлений и 2 удалений
  1. +3
    -0
      group_vars/matrix_servers
  2. +2
    -2
      roles/matrix-bridge-hookshot/tasks/init.yml

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

@@ -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_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


+ 2
- 2
roles/matrix-bridge-hookshot/tasks/init.yml Просмотреть файл

@@ -87,7 +87,7 @@
- name: Generate Matrix hookshot proxying configuration for matrix-nginx-proxy
set_fact:
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 }} {
{% if matrix_nginx_proxy_enabled|default(False) %}
{# 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;
{% endif %}
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_user_file /nginx-data/matrix-synapse-metrics-htpasswd;
{% endif %}


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