diff --git a/conf.d/05-vhost.cfg.lua b/conf.d/05-vhost.cfg.lua index 44f69cd..7d0da7e 100644 --- a/conf.d/05-vhost.cfg.lua +++ b/conf.d/05-vhost.cfg.lua @@ -2,6 +2,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") +local domain_pubsub = os.getenv("DOMAIN_PUBSUB") -- This is a fallback just for http_upload because service certificates are searched differently -- https://prosody.im/doc/certificates#service_certificates @@ -33,3 +34,6 @@ Component (domain_muc) "muc" Component (domain_proxy) "proxy65" proxy65_address = domain_proxy proxy65_acl = { domain } + +-- Implements a XEP-0060 pubsub service. +Component (domain_pubsub) "pubsub" diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index fbcf445..4e8d0af 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -19,6 +19,7 @@ export ALLOW_REGISTRATION=${ALLOW_REGISTRATION:-true} export DOMAIN_HTTP_UPLOAD=${DOMAIN_HTTP_UPLOAD:-"upload.$DOMAIN"} export DOMAIN_MUC=${DOMAIN_MUC:-"conference.$DOMAIN"} export DOMAIN_PROXY=${DOMAIN_PROXY:-"proxy.$DOMAIN"} +export DOMAIN_PUBSUB=${DOMAIN_PUBSUB:-"pubsub.$DOMAIN"} export LOG_LEVEL=${LOG_LEVEL:-"info"} export C2S_REQUIRE_ENCRYPTION=${C2S_REQUIRE_ENCRYPTION:-true} export S2S_REQUIRE_ENCRYPTION=${S2S_REQUIRE_ENCRYPTION:-true} diff --git a/readme.md b/readme.md index e963dcb..7787ba4 100644 --- a/readme.md +++ b/readme.md @@ -176,6 +176,7 @@ Inspect logs: ```docker-compose logs -f```. | **DOMAIN_HTTP_UPLOAD** | Domain which lets clients upload files over HTTP | *optional* | upload.**DOMAIN** | | **DOMAIN_MUC** | Domain for Multi-user chat (MUC) for allowing you to create hosted chatrooms/conferences for XMPP users | *optional* | conference.**DOMAIN** | | **DOMAIN_PROXY** | Domain for SOCKS5 bytestream proxy for server-proxied file transfers | *optional* | proxy.**DOMAIN** | +| **DOMAIN_PUBSUB** | Domain for a XEP-0060 pubsub service | *optional* | pubsub.**DOMAIN** | | **LOG_LEVEL** | Min log level. Change to debug for more information | *optional* | info | | **C2S_REQUIRE_ENCRYPTION** | Whether to force all client-to-server connections to be encrypted or not | *optional* | true | | **S2S_REQUIRE_ENCRYPTION** | Whether to force all server-to-server connections to be encrypted or not | *optional* | true | @@ -188,6 +189,7 @@ You need these DNS record pointing to your server: * domain.tld * conference.domain.tld * proxy.domain.tld +* pubsub.domain.tld * upload.domain.tld * A SRV record for _xmpps-client._tcp.domain.tld for port 5223.