“Nginx SSL 配置”的版本间的差异

来自FiveYellowMice's Wiki
跳到导航 跳到搜索
(创建页面,内容为“<syntaxhighlight lang="nginx"> ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; ssl_ciphers GCM:HIGH:!DH:!RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!P...”)
 
第1行: 第1行:
<syntaxhighlight lang="nginx">
+
<code>/etc/nginx/conf.d/ssl_security.conf</code><syntaxhighlight lang="nginx">
 
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
 
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
 
ssl_prefer_server_ciphers on;
 
ssl_prefer_server_ciphers on;

2016年6月4日 (六) 13:59的版本

/etc/nginx/conf.d/ssl_security.conf

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers GCM:HIGH:!DH:!RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS;
ssl_session_cache shared:SSL:10m;

ssl_stapling on;
ssl_stapling_verify on;
resolver 8.8.8.8 8.8.4.4 valid=300s;
resolver_timeout 5s;