diff options
| author | 陆秋文 <[email protected]> | 2019-05-24 14:00:55 +0800 |
|---|---|---|
| committer | 陆秋文 <[email protected]> | 2019-05-24 14:00:55 +0800 |
| commit | b86f1be0466ace61c330706127e30960bfefb569 (patch) | |
| tree | 9ce4a47ab52a0c71a4e240355556bfa925494e49 /conf/nginx.conf | |
Diffstat (limited to 'conf/nginx.conf')
| -rw-r--r-- | conf/nginx.conf | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/conf/nginx.conf b/conf/nginx.conf new file mode 100644 index 0000000..cd85b02 --- /dev/null +++ b/conf/nginx.conf @@ -0,0 +1,48 @@ +user nginx; +worker_processes 32; +worker_rlimit_nofile 131072; + +error_log /var/log/nginx/error.log warn; +pid /var/run/nginx.pid; + +events { + worker_connections 32768; + use epoll; + multi_accept off; + accept_mutex off; +} + +http { + tcp_nopush on; + tcp_nodelay on; + access_log off; + + sendfile on; + keepalive_timeout 30; + gzip off; + + server { + listen 443 ssl reuseport; + server_name www.server.com www.server1.com; + + ssl_certificate /etc/nginx/ssl/server.crt; + ssl_certificate_key /etc/nginx/ssl/server.key; + ssl_session_tickets on; + ssl_session_cache off; + ssl_session_cache shared:SSL:30m; + ssl_session_timeout 30m; + ssl_protocols SSLv2 SSLv3 TLSv1.2; + ssl_ciphers HIGH:!aNULL:!MD5; + ssl_prefer_server_ciphers on; + + location / { + root /usr/share/nginx/html; + index index.html index.htm; + } + + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; + } + } +} |
