瀏覽代碼

Preserve original comments around `url_preview_url_blacklist`

pull/4641/head
Slavi Pantaleev 5 月之前
committed by GitHub
父節點
當前提交
9fdbccffe4
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: B5690EEEBB952194
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. +4
    -4
      roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2

+ 4
- 4
roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 查看文件

@@ -1161,10 +1161,7 @@ url_preview_ip_range_whitelist: {{ matrix_synapse_url_preview_ip_range_whitelist
# specified component matches for a given list item succeed, the URL is
# blacklisted.
#
{% if matrix_synapse_url_preview_url_blacklist | length > 0 %}
url_preview_url_blacklist: {{ matrix_synapse_url_preview_url_blacklist | to_json }}
{% endif %}

#url_preview_url_blacklist:
# # blacklist any URL with a username in its URI
# - username: '*'
#
@@ -1181,6 +1178,9 @@ url_preview_url_blacklist: {{ matrix_synapse_url_preview_url_blacklist | to_json
#
# # blacklist any URL with a literal IPv4 address
# - netloc: '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$'
{% if matrix_synapse_url_preview_url_blacklist | length > 0 %}
url_preview_url_blacklist: {{ matrix_synapse_url_preview_url_blacklist | to_json }}
{% endif %}

# The largest allowed URL preview spidering size in bytes
#


Loading…
取消
儲存