diff options
author | Cullum Smith <cullum@sacredheartsc.com> | 2025-03-25 17:34:44 -0400 |
---|---|---|
committer | Cullum Smith <cullum@sacredheartsc.com> | 2025-03-25 17:34:44 -0400 |
commit | 9ffc950b5296374f387bfc689806d7af717bb78a (patch) | |
tree | bfbf54034b9e18fb440fa5ba9db3f6506e9c1162 | |
parent | 14c1c4172d71a69854e07736c7b086fa20788e91 (diff) | |
download | infrastructure-9ffc950b5296374f387bfc689806d7af717bb78a.tar.gz |
add unified push to prosody
-rw-r--r-- | files/usr/local/etc/prosody/prosody.cfg.lua.xmpp_server | 7 | ||||
-rw-r--r-- | scripts/hostclass/xmpp_server | 1 | ||||
m--------- | site | 0 | ||||
-rw-r--r-- | vars/hostclass/pkg_repository | 1 |
4 files changed, 7 insertions, 2 deletions
diff --git a/files/usr/local/etc/prosody/prosody.cfg.lua.xmpp_server b/files/usr/local/etc/prosody/prosody.cfg.lua.xmpp_server index e628db8..9c4e2bc 100644 --- a/files/usr/local/etc/prosody/prosody.cfg.lua.xmpp_server +++ b/files/usr/local/etc/prosody/prosody.cfg.lua.xmpp_server @@ -40,6 +40,7 @@ modules_enabled = { "groups"; -- Shared roster support "csi_battery_saver"; "reload_modules"; + "unified_push"; } reload_modules = { "groups", "tls" } @@ -98,10 +99,14 @@ http_file_share_expires_after = ${prosody_upload_expiration} http_file_share_daily_quota = ${prosody_upload_quota} http_file_share_global_quota = ${prosody_upload_quota} +Component "${prosody_push_fqdn}" "unified_push" + unified_push_backend = "storage" + http_host = "${prosody_public_fqdn}" + $(for vhost in $prosody_domains; do cat <<EOF VirtualHost "${vhost}" disco_items = { - { "${prosody_public_fqdn}" } + { "${prosody_public_fqdn}"; "${prosody_push_fqdn}"; } } Component "conference.${vhost}" "muc" modules_enabled = { "muc_mam"} diff --git a/scripts/hostclass/xmpp_server b/scripts/hostclass/xmpp_server index 5f2dc1d..621f688 100644 --- a/scripts/hostclass/xmpp_server +++ b/scripts/hostclass/xmpp_server @@ -6,6 +6,7 @@ # prosody_acme_host= : ${prosody_admins:=''} : ${prosody_public_fqdn:="$fqdn"} +: ${prosody_push_fqdn:="push.${email_domain}"} : ${prosody_domains:="$email_domain"} : ${prosody_ldap_password:='changeme'} : ${prosody_dbname:='prosody'} diff --git a/site b/site -Subproject 14cc66028a485c7a53b43441264c9ae7052df2b +Subproject 2f44977201d80594e2590298d9bb492e4fea655 diff --git a/vars/hostclass/pkg_repository b/vars/hostclass/pkg_repository index faf9e0a..bf4a2a3 100644 --- a/vars/hostclass/pkg_repository +++ b/vars/hostclass/pkg_repository @@ -5,5 +5,4 @@ nginx_redirect=false poudriere_patches=' chromium-gssapi -gstreamer1-plugins-good-fix-v4l-einval ' |