From 1f37db8f1ee0e09347e3835fb8ce0e3cb16a7ee5 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 22 Jan 2021 23:02:29 +0000 Subject: [PATCH] prosody: Move HTTP uploads to subdomain, with flag for backwards compat --- ansible/files/prosody.cfg.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ansible/files/prosody.cfg.lua b/ansible/files/prosody.cfg.lua index 28c3fe9..d893544 100644 --- a/ansible/files/prosody.cfg.lua +++ b/ansible/files/prosody.cfg.lua @@ -213,6 +213,10 @@ Component ("groups."..DOMAIN) "muc" } Component ("share."..DOMAIN) "http_upload" + -- For backwards compat, allow HTTP upload on the base domain + if ENV_SNIKKET_TWEAK_SHARE_DOMAIN ~= "1" then + http_host = "share."..DOMAIN + end http_upload_file_size_limit = 1024 * 1024 * 10 -- 10MB Include "/snikket/prosody/*.cfg.lua"