From 9a3709c8e6260df16f372b4ebb1e497fa9eaea02 Mon Sep 17 00:00:00 2001 From: Andreas Dueren Date: Sun, 10 Aug 2025 11:03:54 -0600 Subject: [PATCH] Fix all nginx temp paths for read-only filesystem --- Dockerfile | 8 +++++--- nginx.conf | 6 ++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 477aef5..db067c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,9 +17,11 @@ COPY logo.png /app/code/logo.png 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 /tmp/nginx_client_body \ - && chown -R cloudron:cloudron /tmp/data /tmp/nginx_client_body +# Initialize data directory structure and nginx temp directories +RUN mkdir -p /tmp/data/logs /tmp/data/db /tmp/data/wal /tmp/data/stream_stats \ + /tmp/nginx_client_body /tmp/nginx_proxy /tmp/nginx_fastcgi /tmp/nginx_uwsgi /tmp/nginx_scgi \ + && chown -R cloudron:cloudron /tmp/data /tmp/nginx_client_body /tmp/nginx_proxy \ + /tmp/nginx_fastcgi /tmp/nginx_uwsgi /tmp/nginx_scgi # Health check HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \ diff --git a/nginx.conf b/nginx.conf index c86cc81..115c52d 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,4 +1,10 @@ +# Nginx temp paths for read-only filesystem compatibility client_body_temp_path /tmp/nginx_client_body; +proxy_temp_path /tmp/nginx_proxy; +fastcgi_temp_path /tmp/nginx_fastcgi; +uwsgi_temp_path /tmp/nginx_uwsgi; +scgi_temp_path /tmp/nginx_scgi; + client_max_body_size 100m; server {