Skip to content

Commit b68b0c4

Browse files
committed
Use secure ciphers and TLS protocols where supported with b/c for os/browsers we support
1 parent b4d772f commit b68b0c4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

nginx.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,14 @@ http {
161161
}
162162
server {
163163
listen 10088;
164+
// When choosing a cipher during an SSLv3 or TLSv1 handshake, normally the client's preference is used.
165+
// If this directive is enabled, the server's preference will be used instead
166+
ssl_prefer_server_ciphers on;
167+
// enable the shared session cache to help reduce the processor load
168+
ssl_session_cache shared:SSL:10m;
169+
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
170+
// The recommended cipher suite for backwards compatibility with Firefox 1, Chrome 1, IE 7, Opera 5 and Safari 1:
171+
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";
164172
location /nginx_status {
165173
stub_status on;
166174
access_log off;

0 commit comments

Comments
 (0)