From cebcccfd35055c24c002b0f4830bb1a6a0c23c80 Mon Sep 17 00:00:00 2001 From: EHerzog76 Date: Fri, 6 Dec 2024 16:22:39 +0100 Subject: [PATCH] Update nginx.conf Changes for better compatibilty with Kubernetes and OKD/OpenShift --- root/defaults/nginx.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/root/defaults/nginx.conf b/root/defaults/nginx.conf index ae1d6f0..4ee431e 100644 --- a/root/defaults/nginx.conf +++ b/root/defaults/nginx.conf @@ -4,7 +4,7 @@ pid /run/nginx.pid; include /etc/nginx/modules/*.conf; events { - worker_connections 768; + worker_connections 1024; } http { @@ -18,6 +18,12 @@ http { default_type application/octet-stream; access_log /config/log/nginx/access.log; error_log /config/log/nginx/error.log; + # Temporary directories for kubernetes changed to writeable folders + client_body_temp_path /config/tmp/nginx/client-body; + proxy_temp_path /config/tmp/nginx/proxy; + fastcgi_temp_path /config/tmp/nginx/fastcgi; + uwsgi_temp_path /config/tmp/nginx/uwsgi; + scgi_temp_path /config/tmp/nginx/scgi; gzip on; gzip_disable "msie6"; include /config/nginx/site-confs/*;