Fix all nginx temp paths for read-only filesystem

This commit is contained in:
Andreas Dueren
2025-08-10 11:03:54 -06:00
parent b82a2e5bec
commit 9a3709c8e6
2 changed files with 11 additions and 3 deletions

View File

@@ -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 \

View File

@@ -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 {