1 | user www-data; |
2 | worker_processes auto; |
3 | pid /run/nginx.pid; |
4 | include /etc/nginx/modules-enabled/*.conf; |
5 |
|
6 | env RESTY_GITWEB_ENABLE=; |
7 | env RESTY_GITWEB_ENV=PROD; |
8 | env RESTY_GITWEB_CONFIG=/etc/resty-gitweb.yaml; |
9 |
|
10 | events { |
11 | worker_connections 768; |
12 | # multi_accept on; |
13 | } |
14 |
|
15 | http { |
16 | sendfile on; |
17 | tcp_nopush on; |
18 | tcp_nodelay on; |
19 | keepalive_timeout 65; |
20 | types_hash_max_size 2048; |
21 | # server_tokens off; |
22 |
|
23 | # server_names_hash_bucket_size 64; |
24 | # server_name_in_redirect off; |
25 |
|
26 | include /etc/nginx/mime.types; |
27 | default_type application/octet-stream; |
28 |
|
29 | ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE |
30 | ssl_prefer_server_ciphers on; |
31 |
|
32 | access_log /var/log/nginx/access.log; |
33 | error_log /var/log/nginx/error.log; |
34 |
|
35 | gzip on; |
36 |
|
37 | # gzip_vary on; |
38 | gzip_proxied any; |
39 | gzip_comp_level 8; |
40 | # gzip_buffers 16 8k; |
41 | # gzip_http_version 1.1; |
42 | gzip_types *; |
43 |
|
44 | include /etc/nginx/conf.d/*.conf; |
45 | include /etc/nginx/sites-enabled/*; |
46 | } |
47 |
|