Fix nginx configuration for read-only filesystem

This commit is contained in:
Andreas Dueren
2025-08-10 11:01:58 -06:00
parent e48e198274
commit b82a2e5bec
2 changed files with 5 additions and 4 deletions

View File

@@ -18,8 +18,8 @@ RUN chmod +x /app/code/start.sh \
&& chown -R cloudron:cloudron /app/code /app/data /tmp/data && chown -R cloudron:cloudron /app/code /app/data /tmp/data
# Initialize data directory structure # Initialize data directory structure
RUN mkdir -p /tmp/data/logs /tmp/data/db /tmp/data/wal /tmp/data/stream_stats \ 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 && chown -R cloudron:cloudron /tmp/data /tmp/nginx_client_body
# Health check # Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \ HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \

View File

@@ -1,11 +1,12 @@
client_body_temp_path /tmp/nginx_client_body;
client_max_body_size 100m;
server { server {
listen 5080 default_server; listen 5080 default_server;
listen [::]:5080 default_server; listen [::]:5080 default_server;
root /app/code; root /app/code;
index index.html; index index.html;
client_max_body_size 100m;
client_body_timeout 600s; client_body_timeout 600s;
client_header_timeout 600s; client_header_timeout 600s;
proxy_connect_timeout 600s; proxy_connect_timeout 600s;