1
0
Fork 0
forked from mirror/prosody

http_upload at upload.domain.tld

This commit is contained in:
Sara Aimée Smiseth 2020-05-31 18:21:42 +02:00
parent 86da996ff3
commit 32fbf2c8db
3 changed files with 5 additions and 5 deletions

View file

@ -72,11 +72,11 @@ RUN docker-prosody-module-install \
csi `# client state indication (XEP-0352)` \ csi `# client state indication (XEP-0352)` \
e2e_policy `# require end-2-end encryption` \ e2e_policy `# require end-2-end encryption` \
filter_chatstates `# disable "X is typing" type messages` \ filter_chatstates `# disable "X is typing" type messages` \
http_upload `# file sharing (XEP-0363)` \
smacks `# stream management (XEP-0198)` \ smacks `# stream management (XEP-0198)` \
throttle_presence `# presence throttling in CSI` throttle_presence `# presence throttling in CSI`
RUN docker-prosody-module-copy \ RUN docker-prosody-module-copy \
http_upload `# file sharing (XEP-0363)` \
vcard_muc `# XEP-0153: vCard-Based Avatar (MUC)` vcard_muc `# XEP-0153: vCard-Based Avatar (MUC)`
USER prosody USER prosody

View file

@ -13,8 +13,8 @@ Component ("proxy." .. domain) "proxy65"
proxy65_acl = { domain } proxy65_acl = { domain }
-- Set up a http file upload because proxy65 is not working in muc -- Set up a http file upload because proxy65 is not working in muc
-- Component (domain) "http_upload" Component ("upload." .. domain) "http_upload"
-- is set-up via modules_enabled http_upload_expire_after = 60 * 60 * 24 * 7 -- a week in seconds
Component ("conference." .. domain) "muc" Component ("conference." .. domain) "muc"
name = "Prosody Chatrooms" name = "Prosody Chatrooms"
@ -24,4 +24,3 @@ Component ("conference." .. domain) "muc"
"muc_mam", "muc_mam",
"vcard_muc" "vcard_muc"
} }

View file

@ -103,11 +103,12 @@ Inspect logs: ```docker-compose logs -f```
#### DNS #### DNS
You need these dns record pointing to your server: You need these DNS record pointing to your server:
* domain.tld * domain.tld
* conference.domain.tld * conference.domain.tld
* proxy.domain.tld * proxy.domain.tld
* upload.domain.tld
where domain.tld is the environment variable DOMAIN. where domain.tld is the environment variable DOMAIN.