nginx config: Remove worker_processes and events.worker_connections.

This is closer to the default nginx settings with respect to concurrency.

Turn off access log, as it is heavy on I/O and would not be used in a
production setup (whether with or without gVisor).

Update nginx to version `1.25.1`.

PiperOrigin-RevId: 551669286
This commit is contained in:
Etienne Perot
2023-07-27 16:16:08 -07:00
committed by gVisor bot
parent 39d89e4a93
commit 3924579214
3 changed files with 12 additions and 20 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
FROM nginx:1.15.10
FROM nginx:1.25.1
# Generate a bunch of relevant files.
RUN mkdir -p /local && \
@@ -8,5 +8,5 @@ RUN mkdir -p /local && \
RUN touch /local/index.html
COPY ./nginx.conf /etc/nginx/nginx.conf
COPY ./nginx.conf /etc/nginx/nginx.conf
COPY ./nginx_gofer.conf /etc/nginx/nginx_gofer.conf
+5 -9
View File
@@ -1,17 +1,13 @@
user nginx;
worker_processes 1;
user nginx;
daemon off;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {}
http {
server {
access_log off;
location / {
root /tmp/html;
}
+5 -9
View File
@@ -1,17 +1,13 @@
user nginx;
worker_processes 1;
user nginx;
daemon off;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {}
http {
server {
access_log off;
location / {
root /local;
}