From 5aebdf5c72549adc87189021fd996269558e0543 Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Sat, 3 Jan 2026 14:27:07 +0000 Subject: Serve invite pages under virtual host While ensuring that all hosts are deployed to the chat subdomain, I applied the same logic to the invite pages too. However, this broke invites as prosody's HTTP module has a check which ensures that the page being served is on the same domain as the virtual host, meaning that invite pages hosted under the chat subdomain would receive a 404. So, serve invite pages from the domain itself (which is the default config in prosody). To do this, we must direct such requests from nginx too. --- files/virtual_host.cfg.lua.j2 | 1 - 1 file changed, 1 deletion(-) (limited to 'files/virtual_host.cfg.lua.j2') diff --git a/files/virtual_host.cfg.lua.j2 b/files/virtual_host.cfg.lua.j2 index 203d1a8..5710859 100644 --- a/files/virtual_host.cfg.lua.j2 +++ b/files/virtual_host.cfg.lua.j2 @@ -40,7 +40,6 @@ site_apps_show = { {% if not is_transport_server %} allow_user_invites = true -http_external_url = "https://chat.{{ virtual_host }}/" site_name = "{{ virtual_host }}" {% endif %} -- cgit v1.2.3