Skip to content

Commit

Permalink
feat: Apply few edits to /etc/nginx/nginx.conf.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuxdude committed May 12, 2024
1 parent 64c7223 commit 6cceacb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 6cceacb

Please sign in to comment.