mirror of
https://github.com/SaraSmiseth/prosody.git
synced 2025-05-04 05:00:39 +00:00
Environment variables for subdomains
This commit is contained in:
parent
32fbf2c8db
commit
b3d3eee131
4 changed files with 31 additions and 9 deletions
|
@ -1,4 +1,7 @@
|
|||
local domain = os.getenv("DOMAIN")
|
||||
local domain_http_upload = os.getenv("DOMAIN_HTTP_UPLOAD")
|
||||
local domain_muc = os.getenv("DOMAIN_MUC")
|
||||
local domain_proxy = os.getenv("DOMAIN_PROXY")
|
||||
|
||||
ssl = {
|
||||
key = "/usr/local/etc/prosody/certs/prosody.key";
|
||||
|
@ -7,16 +10,11 @@ ssl = {
|
|||
|
||||
VirtualHost (domain)
|
||||
|
||||
-- Set up a SOCKS5 bytestream proxy for server-proxied file transfers
|
||||
Component ("proxy." .. domain) "proxy65"
|
||||
proxy65_address = "proxy." .. domain
|
||||
proxy65_acl = { domain }
|
||||
|
||||
-- Set up a http file upload because proxy65 is not working in muc
|
||||
Component ("upload." .. domain) "http_upload"
|
||||
Component (domain_http_upload) "http_upload"
|
||||
http_upload_expire_after = 60 * 60 * 24 * 7 -- a week in seconds
|
||||
|
||||
Component ("conference." .. domain) "muc"
|
||||
Component (domain_muc) "muc"
|
||||
name = "Prosody Chatrooms"
|
||||
restrict_room_creation = false
|
||||
max_history_messages = 20
|
||||
|
@ -24,3 +22,8 @@ Component ("conference." .. domain) "muc"
|
|||
"muc_mam",
|
||||
"vcard_muc"
|
||||
}
|
||||
|
||||
-- Set up a SOCKS5 bytestream proxy for server-proxied file transfers
|
||||
Component (domain_proxy) "proxy65"
|
||||
proxy65_address = domain_proxy
|
||||
proxy65_acl = { domain }
|
Loading…
Add table
Add a link
Reference in a new issue