From 6cceacb81ad5a8ebfb0504a0858c3335c4f8cd45 Mon Sep 17 00:00:00 2001 From: Ash Date: Sat, 11 May 2024 19:40:01 -0700 Subject: [PATCH] feat: Apply few edits to /etc/nginx/nginx.conf. --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index fa4d78d..64c422b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -85,7 +85,10 @@ RUN \ && homelab install /nginx-modules-build/*.deb \ && sed -i '/user nginx;/d' /etc/nginx/nginx.conf \ && sed -i 's,/var/run/nginx.pid,/tmp/nginx.pid,' /etc/nginx/nginx.conf \ + && sed -i '/^pid \/tmp\/nginx.pid;/a include /etc/nginx/modules-enabled/*.conf;' /etc/nginx/nginx.conf \ && sed -i "/^http {/a \ proxy_temp_path /tmp/proxy_temp;\n client_body_temp_path /tmp/client_temp;\n fastcgi_temp_path /tmp/fastcgi_temp;\n uwsgi_temp_path /tmp/uwsgi_temp;\n scgi_temp_path /tmp/scgi_temp;\n" /etc/nginx/nginx.conf \ + && sed -i 's/#tcp_nopush on;/tcp_nopush on;\n tcp_nodelay on;/' /etc/nginx/nginx.conf \ + && sed -i 's/#gzip on;/gzip on;/' /etc/nginx/nginx.conf \ # nginx user must own the cache and etc directory to write cache and tweak the nginx config \ && chown -R ${USER_NAME:?}:${GROUP_NAME:?} /var/cache/nginx \ && chown -R ${USER_NAME:?}:${GROUP_NAME:?} /etc/nginx \