Skip to content

Commit 4932ef3

Browse files
committed
Upd: Boost worker_connections from 1024 to 10240.
1 parent 226bfe1 commit 4932ef3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ RUN apt-get update \
1212

1313
# Configure Nginx and apply fix for very long server names
1414
RUN echo "daemon off;" >> /etc/nginx/nginx.conf \
15-
&& sed -i 's/worker_processes 1/worker_processes auto/' /etc/nginx/nginx.conf
15+
&& sed -i 's/worker_processes 1/worker_processes auto/' /etc/nginx/nginx.conf \
16+
&& sed -i 's/worker_connections 1024/worker_connections 10240/' /etc/nginx/nginx.conf
1617

1718
# Install Forego
1819
ADD https://github.com/jwilder/forego/releases/download/v0.16.1/forego /usr/local/bin/forego

Dockerfile.alpine

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ RUN apk add --no-cache --virtual .run-deps \
99

1010
# Configure Nginx and apply fix for very long server names
1111
RUN echo "daemon off;" >> /etc/nginx/nginx.conf \
12-
&& sed -i 's/worker_processes 1/worker_processes auto/' /etc/nginx/nginx.conf
12+
&& sed -i 's/worker_processes 1/worker_processes auto/' /etc/nginx/nginx.conf \
13+
&& sed -i 's/worker_connections 1024/worker_connections 10240/' /etc/nginx/nginx.conf
1314

1415
# Install Forego
1516
ADD https://github.com/jwilder/forego/releases/download/v0.16.1/forego /usr/local/bin/forego

0 commit comments

Comments
 (0)