diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/120/nginx.conf | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/src/120/nginx.conf b/src/120/nginx.conf new file mode 100644 index 0000000..c75169b --- /dev/null +++ b/src/120/nginx.conf @@ -0,0 +1,84 @@ +# +# ~~~ nginx config +# + +# +# ~~~ system + +# user +user nginx nginx; + +# jit +pcre_jit on; + +# +# ~~~ workers + +# enable +worker_processes auto; + +events { + worker_connections 1024; +} + +# +# ~~~ logging + +# error log +error_log /dev/null; + +# +# ~~~ http settings +http { + + # upgrade requests + map $http_upgrade $connection_upgrade { + default upgrade; + '' close; + } + + # types + include /etc/nginx/mime.types.nginx; + + # disable sending version + server_tokens off; + + # body size + client_max_body_size 1m; + + # optimisations + sendfile on; + tcp_nopush on; + + # ssl protocols + ssl_protocols TLSv1.2 TLSv1.3; + ssl_prefer_server_ciphers on; + ssl_session_cache shared:SSL:2m; + ssl_session_timeout 1h; + ssl_session_tickets off; + + # compression + gzip_vary on; + + # disable logging + access_log off; + + # load domains + include /etc/nginx/conf.d/*.conf; + + # disable non-specified URLs + server { + listen 80 default_server; + server_name _; + + return 444; + } +} + +# +# ~~~ stream settings +stream { + + # load streams + include /etc/nginx/stream.d/*.conf; +} |
