prosody/conf.d/05-vhost.cfg.lua

30 lines
838 B
Lua
Raw Normal View History

2016-10-18 20:20:59 +00:00
local domain = os.getenv("DOMAIN")
2020-06-01 05:25:31 +00:00
local domain_http_upload = os.getenv("DOMAIN_HTTP_UPLOAD")
local domain_muc = os.getenv("DOMAIN_MUC")
local domain_proxy = os.getenv("DOMAIN_PROXY")
2016-10-18 20:20:59 +00:00
ssl = {
key = "/usr/local/etc/prosody/certs/prosody.key";
certificate = "/usr/local/etc/prosody/certs/prosody.crt";
}
VirtualHost (domain)
-- Set up a http file upload because proxy65 is not working in muc
2020-06-01 05:25:31 +00:00
Component (domain_http_upload) "http_upload"
2020-05-31 16:21:42 +00:00
http_upload_expire_after = 60 * 60 * 24 * 7 -- a week in seconds
2020-06-01 05:25:31 +00:00
Component (domain_muc) "muc"
name = "Prosody Chatrooms"
restrict_room_creation = false
max_history_messages = 20
modules_enabled = {
2020-05-31 09:24:31 +00:00
"muc_mam",
"vcard_muc"
}
2020-06-01 05:25:31 +00:00
-- Set up a SOCKS5 bytestream proxy for server-proxied file transfers
Component (domain_proxy) "proxy65"
proxy65_address = domain_proxy
proxy65_acl = { domain }