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

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.
pull/4089/head
Slavi Pantaleev 1 год назад
Родитель
Сommit
0d7d5e6a19
1 измененных файлов: 2 добавлений и 0 удалений
  1. +2
    -0
      roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2

+ 2
- 0
roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 Просмотреть файл

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


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