Prevent Synapse warning about enabling metric listeners with enable_metrics: false

> synapse.app.generic_worker - 606 - WARNING - None - Metrics listener configured, but enable_metrics is not True!
This commit is contained in:
Slavi Pantaleev 2021-01-25 12:24:12 +02:00
parent 70796703d3
commit 01747c8cc4

View File

@ -19,11 +19,12 @@ worker_listeners:
{% elif matrix_synapse_worker_details.type in [ 'media_repository' ] %}
- media
{% endif %}
{% endif %}
{% if matrix_synapse_metrics_enabled %}
- type: metrics
bind_address: ['127.0.0.1']
port: {{ matrix_synapse_worker_details.metrics_port }}
{% endif %}
{% if matrix_synapse_worker_details.type == 'frontend_proxy' %}
worker_main_http_uri: http://matrix-synapse:8008