jabber: add cors

This commit is contained in:
Sandro - 2023-10-13 00:12:31 +02:00
parent f965c7042f
commit 8bf734c4ba
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 8 additions and 0 deletions

View File

@ -194,6 +194,14 @@ in
-- How to get the IPv6 from config?
external_addresses = { "${zentralwerk.lib.dns.publicIPv4}", "2a00:8180:2c00:282:e058:3ff:fea2:d83a", "${hostRegistry.jabber.ip4}", "${hostRegistry.jabber.ip6}" }
trusted_proxies = { "127.0.0.1", "::1", "${hostRegistry.public-access-proxy.ip4}", "${hostRegistry.public-access-proxy.ip6}" }
http_cors_override = {
bosh = {
enabled = true;
};
websocket = {
enabled = true;
};
}
http_default_host = "${domain}"
http_host = "${domain}"
http_external_url = "https://${domain}/"