Browse Source

fix(nginx): revert nginx image to support arm/v7 (#692)

Jonas Janz 2 years ago
parent
commit
97aed8ef23
2 changed files with 9 additions and 3 deletions
  1. 2 2
      nginx/Dockerfile
  2. 7 1
      nginx/nginx.conf

+ 2 - 2
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;"

+ 7 - 1
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;
   # }