From 2b8f81be407536956f302d1c7ee4ae5a10a85d7a Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Thu, 29 Apr 2021 15:15:01 +0200 Subject: [PATCH] [IMP]Nginx image : add higher buffer size for server names --- nginx/Dockerfile | 1 + nginx/nginx.conf | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 nginx/nginx.conf diff --git a/nginx/Dockerfile b/nginx/Dockerfile index bde8936..0c32b68 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -24,6 +24,7 @@ COPY req.pem cert.key dhparams.pem /etc/nginx/certs/ RUN rm /etc/nginx/conf.d/* COPY launch.sh /launch.sh RUN mkdir /etc/nginx/templates +COPY nginx.conf /etc/nginx/ COPY root.conf /etc/nginx/templates/ # Dot not daemonize nginx diff --git a/nginx/nginx.conf b/nginx/nginx.conf new file mode 100644 index 0000000..f1b4fb4 --- /dev/null +++ b/nginx/nginx.conf @@ -0,0 +1,34 @@ + +user nginx; +worker_processes auto; + +error_log /var/log/nginx/error.log notice; +pid /var/run/nginx.pid; + + +events { + worker_connections 1024; +} + + +http { + include /etc/nginx/mime.types; + default_type application/octet-stream; + + log_format main '$remote_addr - $remote_user [$time_local] "$request" ' + '$status $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for"'; + + access_log /var/log/nginx/access.log main; + + sendfile on; + #tcp_nopush on; + + keepalive_timeout 65; + + #gzip on; + + server_names_hash_bucket_size 64; + + include /etc/nginx/conf.d/*.conf; +}