diff --git a/docker/nginx/nginx.conf b/docker/nginx/nginx.conf index 3d7415b..5d6a9e1 100644 --- a/docker/nginx/nginx.conf +++ b/docker/nginx/nginx.conf @@ -1,8 +1,5 @@ -# Main Nginx configuration worker_processes auto; pid /var/run/nginx.pid; - -# Error log configuration error_log /var/log/nginx/error.log warn; events { @@ -10,25 +7,18 @@ events { } http { - # Basic settings include /etc/nginx/mime.types; default_type application/octet-stream; - # Logging configuration - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; - + 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; - # Performance settings sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; - # Gzip settings gzip on; gzip_disable "msie6"; gzip_vary on; @@ -36,6 +26,5 @@ http { gzip_comp_level 6; gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; - # Virtual host configurations include /etc/nginx/conf.d/*.conf; } \ No newline at end of file