Skip to content

Commit 4aef154

Browse files
committed
externalProxyDocs: add conf for tus upload
1 parent 2be4316 commit 4aef154

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

docs/admin/getting-started/container/docker-compose/docker-external-proxy.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,19 @@ server {
183183
184184
ssl_certificate /etc/letsencrypt/live/cloud.YOUR.DOMAIN/fullchain.pem;
185185
ssl_certificate_key /etc/letsencrypt/live/cloud.YOUR.DOMAIN/privkey.pem;
186+
# Increase max upload size (required for Tus — without this, uploads over 1 MB fail)
187+
client_max_body_size 10M;
188+
# Disable buffering - essential for SSE
189+
proxy_buffering off;
190+
proxy_request_buffering off;
191+
192+
# Extend timeouts for long connections
193+
proxy_read_timeout 3600s;
194+
proxy_send_timeout 3600s;
195+
keepalive_timeout 3600s;
196+
197+
# Prevent nginx from trying other upstreams
198+
proxy_next_upstream off;
186199
187200
location / {
188201
proxy_pass http://127.0.0.1:9200;
@@ -200,6 +213,8 @@ server {
200213
201214
ssl_certificate /etc/letsencrypt/live/cloud.YOUR.DOMAIN/fullchain.pem;
202215
ssl_certificate_key /etc/letsencrypt/live/cloud.YOUR.DOMAIN/privkey.pem;
216+
# Increase max upload size to collabora editor
217+
client_max_body_size 10M;
203218
204219
location / {
205220
proxy_pass http://127.0.0.1:9980;

0 commit comments

Comments
 (0)