From c2a2fab3b088c413bdbbbecea868fa6dbee2ab39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20D=C3=BCren?= Date: Fri, 14 Mar 2025 22:16:39 +0100 Subject: [PATCH] Simplify NGINX configuration with correct directive placement --- start.sh | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/start.sh b/start.sh index f0e468b..f9b3017 100644 --- a/start.sh +++ b/start.sh @@ -3,7 +3,7 @@ set -eu # Create necessary directories -mkdir -p /app/data/config /app/data/storage /app/data/nginx /app/data/nginx/tmp /app/data/nginx/cache /app/data/nginx/client_body /app/data/nginx/proxy /app/data/nginx/fastcgi /app/data/nginx/uwsgi /app/data/nginx/scgi +mkdir -p /app/data/config /app/data/storage /app/data/nginx/tmp echo "==> DEBUG: Full repository structure at /app/code" find /app/code -type d -maxdepth 3 -not -path "*/node_modules/*" -not -path "*/\.*" | sort @@ -122,13 +122,6 @@ error_log stderr; daemon off; pid /app/data/nginx/nginx.pid; -# Set all temp paths to writable locations -client_body_temp_path /app/data/nginx/client_body; -proxy_temp_path /app/data/nginx/proxy; -fastcgi_temp_path /app/data/nginx/fastcgi; -uwsgi_temp_path /app/data/nginx/uwsgi; -scgi_temp_path /app/data/nginx/scgi; - events { worker_connections 1024; } @@ -140,12 +133,12 @@ http { sendfile on; keepalive_timeout 65; - # Use writable temp directory - client_body_temp_path /app/data/nginx/client_body; - proxy_temp_path /app/data/nginx/proxy; - fastcgi_temp_path /app/data/nginx/fastcgi; - uwsgi_temp_path /app/data/nginx/uwsgi; - scgi_temp_path /app/data/nginx/scgi; + # Define temp file paths + client_body_temp_path /app/data/nginx/tmp; + proxy_temp_path /app/data/nginx/tmp; + fastcgi_temp_path /app/data/nginx/tmp; + uwsgi_temp_path /app/data/nginx/tmp; + scgi_temp_path /app/data/nginx/tmp; server { listen 8080;