[IMP]Nginx image : add higher buffer size for server names

This commit is contained in:
Fabien BOURGEOIS 2021-04-29 15:15:01 +02:00
parent 0f5904e709
commit 2b8f81be40
2 changed files with 35 additions and 0 deletions

View File

@ -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

34
nginx/nginx.conf Normal file
View File

@ -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;
}