1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-02-24 09:48:14 +00:00

refactor: remove unneeded nginx.conf modification

the upstream nginx.conf already has "worker_processes  auto;"
This commit is contained in:
Nicolas Duchon 2023-12-25 19:18:00 +01:00
parent de4cb3d2b0
commit 758b43a5b2
2 changed files with 2 additions and 4 deletions

View File

@ -21,8 +21,7 @@ RUN apk add --no-cache --virtual .run-deps \
&& update-ca-certificates && update-ca-certificates
# Configure Nginx # Configure Nginx
RUN sed -i 's/worker_processes 1/worker_processes auto/' /etc/nginx/nginx.conf \ RUN sed -i 's/worker_connections 1024/worker_connections 10240/' /etc/nginx/nginx.conf \
&& sed -i 's/worker_connections 1024/worker_connections 10240/' /etc/nginx/nginx.conf \
&& mkdir -p '/etc/nginx/dhparam' && mkdir -p '/etc/nginx/dhparam'
# Install Forego + docker-gen # Install Forego + docker-gen

View File

@ -20,8 +20,7 @@ RUN apt-get update \
&& rm -r /var/lib/apt/lists/* && rm -r /var/lib/apt/lists/*
# Configure Nginx # Configure Nginx
RUN sed -i 's/worker_processes 1/worker_processes auto/' /etc/nginx/nginx.conf \ RUN sed -i 's/worker_connections 1024/worker_connections 10240/' /etc/nginx/nginx.conf \
&& sed -i 's/worker_connections 1024/worker_connections 10240/' /etc/nginx/nginx.conf \
&& mkdir -p '/etc/nginx/dhparam' && mkdir -p '/etc/nginx/dhparam'
# Install Forego + docker-gen # Install Forego + docker-gen