Skip to content

Commit 90b62e0

Browse files
authored
Merge pull request nginx-proxy#851 from Neilpang/worker_processes
fix worker_processes to "auto"
2 parents e3b6be7 + a3cd96e commit 90b62e0

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
@@ -11,7 +11,8 @@ RUN apt-get update \
1111

1212
# Configure Nginx and apply fix for very long server names
1313
RUN echo "daemon off;" >> /etc/nginx/nginx.conf \
14-
&& sed -i 's/^http {/&\n server_names_hash_bucket_size 128;/g' /etc/nginx/nginx.conf
14+
&& sed -i 's/^http {/&\n server_names_hash_bucket_size 128;/g' /etc/nginx/nginx.conf \
15+
&& sed -i 's/worker_processes 1/worker_processes auto/' /etc/nginx/nginx.conf
1516

1617
# Install Forego
1718
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
@@ -8,7 +8,8 @@ RUN apk add --no-cache --virtual .run-deps \
88

99
# Configure Nginx and apply fix for very long server names
1010
RUN echo "daemon off;" >> /etc/nginx/nginx.conf \
11-
&& sed -i 's/^http {/&\n server_names_hash_bucket_size 128;/g' /etc/nginx/nginx.conf
11+
&& sed -i 's/^http {/&\n server_names_hash_bucket_size 128;/g' /etc/nginx/nginx.conf \
12+
&& sed -i 's/worker_processes 1/worker_processes auto/' /etc/nginx/nginx.conf
1213

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

0 commit comments

Comments
 (0)