diff --git a/conf/nginx.conf b/conf/nginx.conf new file mode 100644 index 0000000..974c120 --- /dev/null +++ b/conf/nginx.conf @@ -0,0 +1,42 @@ +user nginx; +worker_processes 1; + +error_log /var/log/nginx/error.log warn; +pid /var/run/nginx.pid; + + +events { + worker_connections 1024; +} + + +http { + server_names_hash_bucket_size 128; + 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 6000; + + #gzip on; + client_max_body_size 1G; + fastcgi_read_timeout 6000; + proxy_connect_timeout 6000; + proxy_send_timeout 6000; + proxy_read_timeout 6000; + send_timeout 6000; + include /etc/nginx/conf.d/*.conf; + + proxy_buffer_size 128k; + proxy_buffers 4 256k; + proxy_busy_buffers_size 256k; +} +daemon off; diff --git a/docker-compose.yml b/docker-compose.yml index 713ed11..a534960 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,6 +4,7 @@ nginx: volumes: - /var/run/docker.sock:/tmp/docker.sock:ro - ./certs:/etc/nginx/certs + - ./conf/nginx.conf:/etc/nginx/nginx.conf:ro ports: - 80:80 - 443:443