main.conf (1528B)
1 user www-data; 2 worker_processes auto; 3 worker_cpu_affinity auto; 4 pid /run/nginx.pid; 5 error_log /var/log/nginx/error.log; 6 include /etc/nginx/modules-enabled/*.conf; 7 8 events { 9 worker_connections 768; 10 # multi_accept on; 11 } 12 13 http { 14 15 ## 16 # Basic Settings 17 ## 18 19 sendfile on; 20 client_max_body_size 5M; 21 tcp_nopush on; 22 types_hash_max_size 2048; 23 server_tokens off; 24 25 # server_names_hash_bucket_size 64; 26 # server_name_in_redirect off; 27 28 include /etc/nginx/mime.types; 29 default_type application/octet-stream; 30 31 ## 32 # SSL Settings 33 ## 34 35 ssl_protocols TLSv1.2 TLSv1.3; # Dropping SSLv3 (POODLE), TLS 1.0, 1.1 36 ssl_prefer_server_ciphers off; # Don't force server cipher order. 37 38 ## 39 # Logging Settings 40 ## 41 42 access_log /var/log/nginx/access.log; 43 44 ## 45 # Gzip Settings 46 ## 47 48 gzip on; 49 50 # gzip_vary on; 51 # gzip_proxied any; 52 # gzip_comp_level 6; 53 # gzip_buffers 16 8k; 54 # gzip_http_version 1.1; 55 # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; 56 57 ## 58 # Virtual Host Configs 59 ## 60 61 include /etc/nginx/conf.d/*.conf; 62 include /etc/nginx/sites-enabled/*; 63 } 64 65 66 #mail { 67 # # See sample authentication script at: 68 # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript 69 # 70 # # auth_http localhost/auth.php; 71 # # pop3_capabilities "TOP" "USER"; 72 # # imap_capabilities "IMAP4rev1" "UIDPLUS"; 73 # 74 # server { 75 # listen localhost:110; 76 # protocol pop3; 77 # proxy on; 78 # } 79 # 80 # server { 81 # listen localhost:143; 82 # protocol imap; 83 # proxy on; 84 # } 85 #}