prosody: Move HTTP uploads to subdomain, with flag for backwards compat

This commit is contained in:
Matthew Wild 2021-01-22 23:02:29 +00:00
parent a5f78bd027
commit 1f37db8f1e
1 changed files with 4 additions and 0 deletions

View File

@ -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"