diff --git a/docker/nginx/nginx.conf b/docker/nginx/nginx.conf index 1822ec4..d6a38fb 100644 --- a/docker/nginx/nginx.conf +++ b/docker/nginx/nginx.conf @@ -1,24 +1,24 @@ -user nginx; +user www-data; worker_processes auto; -error_log /var/log/nginx/error.log warn; -pid /var/run/nginx.pid; +pid /run/nginx.pid; +include /etc/nginx/modules-enabled/*.conf; events { - worker_connections 1024; + worker_connections 768; } http { + sendfile on; + tcp_nopush on; + types_hash_max_size 2048; 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; + error_log /var/log/nginx/error.log; + + gzip on; - access_log /var/log/nginx/access.log main; - - sendfile on; - keepalive_timeout 65; - include /etc/nginx/conf.d/*.conf; + include /etc/nginx/sites-enabled/*; } \ No newline at end of file