From b82a2e5bec239bc2b314f719f3025d06e342ccea Mon Sep 17 00:00:00 2001 From: Andreas Dueren Date: Sun, 10 Aug 2025 11:01:58 -0600 Subject: [PATCH] Fix nginx configuration for read-only filesystem --- Dockerfile | 4 ++-- nginx.conf | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 509b4d8..477aef5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,8 +18,8 @@ RUN chmod +x /app/code/start.sh \ && chown -R cloudron:cloudron /app/code /app/data /tmp/data # Initialize data directory structure -RUN mkdir -p /tmp/data/logs /tmp/data/db /tmp/data/wal /tmp/data/stream_stats \ - && chown -R cloudron:cloudron /tmp/data +RUN mkdir -p /tmp/data/logs /tmp/data/db /tmp/data/wal /tmp/data/stream_stats /tmp/nginx_client_body \ + && chown -R cloudron:cloudron /tmp/data /tmp/nginx_client_body # Health check HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \ diff --git a/nginx.conf b/nginx.conf index 3f1889f..c86cc81 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,11 +1,12 @@ +client_body_temp_path /tmp/nginx_client_body; +client_max_body_size 100m; + server { listen 5080 default_server; listen [::]:5080 default_server; root /app/code; index index.html; - - client_max_body_size 100m; client_body_timeout 600s; client_header_timeout 600s; proxy_connect_timeout 600s;