Skip to content

Commit 35df872

Browse files
authored
Merge pull request nginx-proxy#973 from Sparted/master
Upd: Boost worker_connections from 1024 to 10240.
2 parents 1f937dd + 4932ef3 commit 35df872

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ RUN apt-get update \
5353

5454
# Configure Nginx and apply fix for very long server names
5555
RUN echo "daemon off;" >> /etc/nginx/nginx.conf \
56-
&& sed -i 's/worker_processes 1/worker_processes auto/' /etc/nginx/nginx.conf
56+
&& sed -i 's/worker_processes 1/worker_processes auto/' /etc/nginx/nginx.conf \
57+
&& sed -i 's/worker_connections 1024/worker_connections 10240/' /etc/nginx/nginx.conf
5758

5859
# Install Forego + docker-gen
5960
COPY --from=forego /go/src/github.com/ddollar/forego/forego /usr/local/bin/forego

Dockerfile.alpine

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ RUN apk add --no-cache --virtual .run-deps \
5050

5151
# Configure Nginx and apply fix for very long server names
5252
RUN echo "daemon off;" >> /etc/nginx/nginx.conf \
53-
&& sed -i 's/worker_processes 1/worker_processes auto/' /etc/nginx/nginx.conf
53+
&& sed -i 's/worker_processes 1/worker_processes auto/' /etc/nginx/nginx.conf \
54+
&& sed -i 's/worker_connections 1024/worker_connections 10240/' /etc/nginx/nginx.conf
5455

5556
# Install Forego + docker-gen
5657
COPY --from=forego /go/src/github.com/ddollar/forego/forego /usr/local/bin/forego

0 commit comments

Comments
 (0)