summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--contrib/docker/conf/homeserver.yaml5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/docker/conf/homeserver.yaml b/contrib/docker/conf/homeserver.yaml
index 19a2cbad29..3b57f7174d 100644
--- a/contrib/docker/conf/homeserver.yaml
+++ b/contrib/docker/conf/homeserver.yaml
@@ -156,8 +156,13 @@ trusted_third_party_id_servers:
 
 ## Metrics ###
 
+{% if SYNAPSE_REPORT_STATS.lower() == "yes" %}
+enable_metrics: True
+report_stats: True
+{% else %}
 enable_metrics: False
 report_stats: False
+{% endif %}
 
 ## API Configuration ##