2016-07-27 01:41:52 +08:00
|
|
|
user www-data;
|
2016-05-06 22:04:02 +08:00
|
|
|
worker_processes 4;
|
|
|
|
pid /run/nginx.pid;
|
2016-07-27 00:19:31 +08:00
|
|
|
daemon off;
|
2016-05-06 22:04:02 +08:00
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 2048;
|
|
|
|
multi_accept on;
|
|
|
|
use epoll;
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
|
|
|
server_tokens off;
|
|
|
|
sendfile on;
|
|
|
|
tcp_nopush on;
|
|
|
|
tcp_nodelay on;
|
|
|
|
keepalive_timeout 15;
|
|
|
|
types_hash_max_size 2048;
|
2016-06-28 17:18:37 +08:00
|
|
|
client_max_body_size 20M;
|
2016-05-06 22:04:02 +08:00
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
default_type application/octet-stream;
|
2017-04-05 06:05:28 +08:00
|
|
|
access_log /dev/stdout;
|
|
|
|
error_log /dev/stderr;
|
2016-05-06 22:04:02 +08:00
|
|
|
gzip on;
|
|
|
|
gzip_disable "msie6";
|
2016-10-10 09:01:49 +08:00
|
|
|
|
|
|
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
|
|
|
ssl_ciphers 'ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS';
|
|
|
|
|
2016-05-06 22:04:02 +08:00
|
|
|
include /etc/nginx/conf.d/*.conf;
|
2016-08-16 05:14:05 +08:00
|
|
|
include /etc/nginx/sites-available/*;
|
2017-03-08 16:26:08 +08:00
|
|
|
open_file_cache off; # Disabled for issue 619
|
2016-10-15 01:01:26 +08:00
|
|
|
charset UTF-8;
|
2016-05-06 22:04:02 +08:00
|
|
|
}
|