Do not define url_preview_ip_range_blacklist in Synapse's homeserver.yaml if URL preview is disabled

It's useless and just makes the config longer.
This commit is contained in:
Slavi Pantaleev 2025-02-21 23:03:26 +02:00
parent d9eabc49e6
commit 0d7d5e6a19

View File

@ -1131,7 +1131,9 @@ url_preview_enabled: {{ matrix_synapse_url_preview_enabled|to_json }}
# #
# Note: The value is ignored when an HTTP proxy is in use # Note: The value is ignored when an HTTP proxy is in use
# #
{% if matrix_synapse_url_preview_enabled %}
url_preview_ip_range_blacklist: {{ matrix_synapse_url_preview_ip_range_blacklist | to_json }} url_preview_ip_range_blacklist: {{ matrix_synapse_url_preview_ip_range_blacklist | to_json }}
{% endif %}
# List of IP address CIDR ranges that the URL preview spider is allowed # List of IP address CIDR ranges that the URL preview spider is allowed
# to access even if they are specified in url_preview_ip_range_blacklist. # to access even if they are specified in url_preview_ip_range_blacklist.