From 8693750c33ed475128be722b59f1592162f0cf32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Sat, 23 Nov 2019 20:30:39 +0100 Subject: [PATCH] Enable url preview and increase max upload size Fix #159 --- conf/homeserver.yaml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/conf/homeserver.yaml b/conf/homeserver.yaml index c990ef1..d5a3b4b 100644 --- a/conf/homeserver.yaml +++ b/conf/homeserver.yaml @@ -621,7 +621,7 @@ uploads_path: "/var/lib/matrix-__APP__/uploads" # The largest allowed upload size in bytes # -#max_upload_size: 10M +max_upload_size: 100M # Maximum number of pixels that will be thumbnailed # @@ -658,8 +658,8 @@ uploads_path: "/var/lib/matrix-__APP__/uploads" # # 'false' by default: uncomment the following to enable it (and specify a # url_preview_ip_range_blacklist blacklist). -# -#url_preview_enabled: true + +url_preview_enabled: true # List of IP address CIDR ranges that the URL preview spider is denied # from accessing. There are no defaults: you must explicitly @@ -674,17 +674,17 @@ uploads_path: "/var/lib/matrix-__APP__/uploads" # # This must be specified if url_preview_enabled is set. It is recommended that # you uncomment the following list as a starting point. -# -#url_preview_ip_range_blacklist: -# - '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' + +url_preview_ip_range_blacklist: + - '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' # 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.