Skip to content

Commit

Permalink
Merge pull request #4 from unboxed/ssl_protocols_options
Browse files Browse the repository at this point in the history
[ssl_protocols_options] Config of ssl_options
  • Loading branch information
nickjj committed Mar 17, 2015
2 parents ce54b5a + 23754eb commit dce91b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ nginx_ssl_local_path: /home/yourname/dev/testproject/secrets
nginx_ssl_cert_name: sslcert.crt
nginx_ssl_key_name: sslkey.key
# Whicb SSL protocols should we support?
nginx_ssl_protocols: "TLSv1 TLSv1.1 TLSv1.2"
# The amount in seconds to cache apt-update.
apt_cache_valid_time: 86400
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@ nginx_ssl_manage_certs: true
nginx_ssl_local_path: /home/yourname/dev/testproject/secrets
nginx_ssl_cert_name: sslcert.crt
nginx_ssl_key_name: sslkey.key
nginx_ssl_protocols: "TLSv1 TLSv1.1 TLSv1.2"

apt_cache_valid_time: 86400
2 changes: 1 addition & 1 deletion templates/nginx_sites-available.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ server {
ssl_session_cache {{ nginx_ssl_session_cache }};
ssl_session_timeout {{ nginx_ssl_session_timeout }};
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_protocols {{ nginx_ssl_protocols }};
ssl_ciphers {{ nginx_ssl_ciphers }};
ssl_ecdh_curve {{ nginx_ssl_ecdh_curve }};
add_header Strict-Transport-Security $sts;
Expand Down

0 comments on commit dce91b4

Please sign in to comment.