summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Fennell <matthew@fennell.dev>2025-10-28 05:02:09 +0000
committerMatthew Fennell <matthew@fennell.dev>2025-10-28 05:02:09 +0000
commitc00f152d8b4f83a100cd5bafb2c46694768fbe2e (patch)
tree07e383977a0f8a4ee4e78d73d97b0790910197ff
parentf09d9f004f270fa39b56d39daa03419a54828838 (diff)
Entitle transports to upload filesHEADmaster
This is needed as the transports are by default treated as guests by prosody, and therefore unable to upload files without explicit permission.
-rw-r--r--files/virtual_host.cfg.lua.j28
1 files changed, 8 insertions, 0 deletions
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 == "" %}