From bcb2a2b652f73a44a5b7936c3fd223bcefd0b185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Fri, 27 May 2022 15:27:16 +0100 Subject: [PATCH] add url previews --- config/services/matrix-media-repo.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/config/services/matrix-media-repo.nix b/config/services/matrix-media-repo.nix index 3891afbb..8add68ef 100644 --- a/config/services/matrix-media-repo.nix +++ b/config/services/matrix-media-repo.nix @@ -31,6 +31,20 @@ let bindAddress = "::"; port = 9000; }; + urlPreviews = { + enabled = true; + numWorkers = 10; + oEmbed = true; + disallowedNetworks = [ + "127.0.0.1/8" + "10.0.0.0/8" + "172.16.0.0/12" + "192.168.0.0/16" + "::1/128" + "fe80::/64" + "fc00::/7" + ]; + }; }); in {