diff --git a/nginx/Dockerfile b/nginx/Dockerfile index 46dc313dbb..b1bbe3d00e 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -1,5 +1,5 @@ -FROM registry.access.redhat.com/ubi9/nginx-120:latest +FROM docker.io/nginxinc/nginx-unprivileged:latest -COPY nginx.conf "${NGINX_CONF_PATH}" +COPY nginx.conf "/etc/nginx/nginx.conf" CMD nginx -g "daemon off;" \ No newline at end of file diff --git a/nginx/nginx.conf b/nginx/nginx.conf index c45fee8dca..511d4adec2 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -2,7 +2,7 @@ worker_processes auto; error_log /var/log/nginx/error.log; -pid /run/nginx.pid; +pid /tmp/nginx.pid; # Load dynamic modules. See /usr/share/doc/nginx/README.dynamic. include /usr/share/nginx/modules/*.conf; @@ -17,6 +17,12 @@ http { '' close; } + client_body_temp_path /tmp/client_temp; + proxy_temp_path /tmp/proxy_temp_path; + fastcgi_temp_path /tmp/fastcgi_temp; + uwsgi_temp_path /tmp/uwsgi_temp; + scgi_temp_path /tmp/scgi_temp; + # events { # worker_connections 1000; # }