Fix NGINX configuration to use writable temp directories
This commit is contained in:
parent
acadfc5af4
commit
a8f2d13234
16
start.sh
16
start.sh
@ -3,7 +3,7 @@
|
|||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
# Create necessary directories
|
# 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"
|
echo "==> DEBUG: Full repository structure at /app/code"
|
||||||
find /app/code -type d -maxdepth 3 -not -path "*/node_modules/*" -not -path "*/\.*" | sort
|
find /app/code -type d -maxdepth 3 -not -path "*/node_modules/*" -not -path "*/\.*" | sort
|
||||||
@ -122,6 +122,13 @@ error_log stderr;
|
|||||||
daemon off;
|
daemon off;
|
||||||
pid /app/data/nginx/nginx.pid;
|
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 {
|
events {
|
||||||
worker_connections 1024;
|
worker_connections 1024;
|
||||||
}
|
}
|
||||||
@ -133,6 +140,13 @@ http {
|
|||||||
sendfile on;
|
sendfile on;
|
||||||
keepalive_timeout 65;
|
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 {
|
server {
|
||||||
listen 8080;
|
listen 8080;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user