fix template error
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2019-01-21 21:50:37 +01:00
parent b183e5aa34
commit c32beb94c7
2 changed files with 13 additions and 13 deletions

View File

@ -113,22 +113,22 @@ matrix_url_preview_enabled: False
# anyone in any Matrix room could cause your synapse to issue arbitrary
# GET requests to your internal services, causing serious security issues.
# matrix_url_preview_blacklist: # defaults to not set
# - '127.0.0.0/8'
# - '10.0.0.0/8'
# - '172.16.0.0/12'
# - '192.168.0.0/16'
# - '100.64.0.0/10'
# - '169.254.0.0/16'
# - '::1/128'
# - 'fe80::/64'
# - 'fc00::/7'
# - "'127.0.0.0/8'"
# - "'10.0.0.0/8'"
# - "'172.16.0.0/12'"
# - "'192.168.0.0/16'"
# - "'100.64.0.0/10'"
# - "'169.254.0.0/16'"
# - "'::1/128'"
# - "'fe80::/64'"
# - "'fc00::/7'"
# Optional list of URL matches that the URL preview spider is
# denied from accessing.
# https://docs.python.org/2/library/urlparse.html#urlparse.urlsplit
# matrix_url_preview_url_blacklist:
# - netloc: '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$'
# - netloc: '^([A-f0-9:]+:+)+[A-f0-9]+$'
# - netloc: "'^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$'"
# - netloc: "'^([A-f0-9:]+:+)+[A-f0-9]+$'"
matrix_url_preview_max_spider_size: 10M
matrix_tls_enabled: False

View File

@ -320,11 +320,11 @@ thumbnail_sizes:
# Is the preview URL API enabled? If enabled, you *must* specify
# an explicit url_preview_ip_range_blacklist of IPs that the spider is
# denied from accessing.
url_preview_enabled: {% 'True' if matrix_url_preview_enabled else 'False' %}
url_preview_enabled: {{ 'True' if matrix_url_preview_enabled else 'False' }}
{% if matrix_url_preview_ip_blacklist is defined %}
url_preview_ip_range_blacklist:
{{ matrix_url_preview_ip_blacklist | to_nice_yaml(indent=8) }}
{{ matrix_url_preview_ip_blacklist | to_nice_yaml(indent=2) }}
{% endif %}
# List of IP address CIDR ranges that the URL preview spider is allowed