xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-webserver/recipes-httpd/nginx/files/nginx.conf (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1user  www;
2worker_processes 1;
3pid /run/nginx/nginx.pid;
4include /etc/nginx/modules-enabled/*.conf;
5
6events {
7    worker_connections 768;
8    # multi_accept on;
9}
10
11http {
12    # Basic Settings
13    sendfile on;
14    tcp_nopush on;
15    tcp_nodelay on;
16    keepalive_timeout 65;
17    types_hash_max_size 2048;
18    # server_tokens off;
19
20    # server_names_hash_bucket_size 64;
21    # server_name_in_redirect off;
22
23    include       /etc/nginx/mime.types;
24    default_type  application/octet-stream;
25
26    # SSL Settings
27    ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
28    ssl_prefer_server_ciphers on;
29
30    ## Logging
31    access_log /var/log/nginx/access.log;
32    error_log /var/log/nginx/error.log;
33
34    ## Gzip settings
35    gzip  on;
36
37    gzip_vary on;
38    gzip_proxied any;
39    gzip_comp_level 6;
40    gzip_buffers 16 8k;
41    gzip_http_version 1.1;
42    gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
43
44    ## Virtual Host Configs
45    include /etc/nginx/conf.d/*.conf;
46    include /etc/nginx/sites-enabled/*;
47}
48