From 32fbf2c8db840036d3a4290589f7ca8500c92140 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sara=20Aim=C3=A9e=20Smiseth?= <51710585+SaraSmiseth@users.noreply.github.com> Date: Sun, 31 May 2020 18:21:42 +0200 Subject: [PATCH] http_upload at upload.domain.tld --- Dockerfile | 2 +- conf.d/04-vhost.cfg.lua | 5 ++--- readme.md | 3 ++- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 62f3825..6ec59ac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -72,11 +72,11 @@ RUN docker-prosody-module-install \ csi `# client state indication (XEP-0352)` \ e2e_policy `# require end-2-end encryption` \ filter_chatstates `# disable "X is typing" type messages` \ - http_upload `# file sharing (XEP-0363)` \ smacks `# stream management (XEP-0198)` \ throttle_presence `# presence throttling in CSI` RUN docker-prosody-module-copy \ + http_upload `# file sharing (XEP-0363)` \ vcard_muc `# XEP-0153: vCard-Based Avatar (MUC)` USER prosody diff --git a/conf.d/04-vhost.cfg.lua b/conf.d/04-vhost.cfg.lua index 0bc9173..40ddf3d 100644 --- a/conf.d/04-vhost.cfg.lua +++ b/conf.d/04-vhost.cfg.lua @@ -13,8 +13,8 @@ Component ("proxy." .. domain) "proxy65" proxy65_acl = { domain } -- Set up a http file upload because proxy65 is not working in muc --- Component (domain) "http_upload" --- is set-up via modules_enabled +Component ("upload." .. domain) "http_upload" + http_upload_expire_after = 60 * 60 * 24 * 7 -- a week in seconds Component ("conference." .. domain) "muc" name = "Prosody Chatrooms" @@ -24,4 +24,3 @@ Component ("conference." .. domain) "muc" "muc_mam", "vcard_muc" } - diff --git a/readme.md b/readme.md index 6fe194c..bd106ff 100644 --- a/readme.md +++ b/readme.md @@ -103,11 +103,12 @@ Inspect logs: ```docker-compose logs -f``` #### DNS -You need these dns record pointing to your server: +You need these DNS record pointing to your server: * domain.tld * conference.domain.tld * proxy.domain.tld +* upload.domain.tld where domain.tld is the environment variable DOMAIN.