From c00f152d8b4f83a100cd5bafb2c46694768fbe2e Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Tue, 28 Oct 2025 05:02:09 +0000 Subject: Entitle transports to upload files This is needed as the transports are by default treated as guests by prosody, and therefore unable to upload files without explicit permission. --- files/virtual_host.cfg.lua.j2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/files/virtual_host.cfg.lua.j2 b/files/virtual_host.cfg.lua.j2 index 2051c92..a5ab87e 100644 --- a/files/virtual_host.cfg.lua.j2 +++ b/files/virtual_host.cfg.lua.j2 @@ -72,6 +72,14 @@ Component "upload.{{ virtual_host }}" "http_file_share" http_file_share_size_limit = 300 * 1024 * 1024 http_file_share_global_quota = 5 * 1024 * 1024 * 1024 +{% if is_transport_server %} +http_file_share_access = { +{% for transport in transports %} + "{{ transport.subdomain }}.{{ virtual_host }}"; +{% endfor %} +} +{% endif %} + Component "proxy.{{ virtual_host }}" "proxy65" {% if delegate_prefix == "" %} -- cgit v1.2.3