From 97aed8ef239fd650491b3d9daabf7ecc8f49d841 Mon Sep 17 00:00:00 2001 From: Jonas Janz <5434875+PixelJonas@users.noreply.github.com> Date: Wed, 14 Sep 2022 20:36:29 +0200 Subject: [PATCH] fix(nginx): revert nginx image to support arm/v7 (#692) --- nginx/Dockerfile | 4 ++-- nginx/nginx.conf | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/nginx/Dockerfile b/nginx/Dockerfile index 46dc313db..b1bbe3d00 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 c45fee8dc..511d4adec 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; # }