From 6a486b088b957a2af6d1dfeb692ecef6ec8c5e06 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sat, 5 Oct 2019 09:07:54 +0200 Subject: Optimize dockerfile --- files/etc/nginx/nginx.conf | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 files/etc/nginx/nginx.conf (limited to 'files/etc/nginx/nginx.conf') diff --git a/files/etc/nginx/nginx.conf b/files/etc/nginx/nginx.conf new file mode 100644 index 0000000..1634164 --- /dev/null +++ b/files/etc/nginx/nginx.conf @@ -0,0 +1,31 @@ +worker_processes 4; +pid /tmp/nginx.pid; +error_log /proc/self/fd/2 warn; + +events { + worker_connections 768; + # multi_accept on; +} + +http { + sendfile on; + tcp_nopush on; + tcp_nodelay on; + keepalive_timeout 65; + types_hash_max_size 2048; + + include /etc/nginx/mime.types; + default_type application/octet-stream; + + #client_body_temp_path /tmp/nginx/temp; + #proxy_temp_path /tmp/nginx/proxy; + + access_log /proc/self/fd/1; + error_log /proc/self/fd/2; + + gzip on; + gzip_disable "msie6"; + + include /etc/nginx/conf.d/*.conf; + include /etc/nginx/sites-enabled/*; +} -- cgit v1.2.3