diff --git a/start.sh b/start.sh index 4b95e3c..f0e468b 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 +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 echo "==> DEBUG: Full repository structure at /app/code" find /app/code -type d -maxdepth 3 -not -path "*/node_modules/*" -not -path "*/\.*" | sort @@ -122,6 +122,13 @@ 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; } @@ -133,6 +140,13 @@ 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; + server { listen 8080;