Skip to content

Commit

Permalink
Implement changes of ssl protocol and ciphers
Browse files Browse the repository at this point in the history
  • Loading branch information
pwalczysko committed Nov 20, 2024
1 parent 2c28f48 commit ef36d3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions playbooks/templates/nginx-confdnestedincludes-ssl-conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ ssl_certificate {{ ssl_certificate_bundled_path }};
ssl_certificate_key {{ ssl_certificate_key_path }};

# use default ssl_protocols and ssl_ciphers:
# ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_protocols TLSv1.2 TLSv1.3; # don't use SSLv3 ref: POODLE
# ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305;
# http://nginx.org/en/docs/http/configuring_https_servers.html
ssl_prefer_server_ciphers on;

Expand Down
3 changes: 2 additions & 1 deletion playbooks/templates/nginx-omero.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ server {

ssl_certificate {{ ssl_certificate_bundled_path }};
ssl_certificate_key {{ ssl_certificate_key_path }};
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_protocols TLSv1.2 TLSv1.3; # don't use SSLv3 ref: POODLE
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305;

if ($ssl_protocol = "") {
rewrite ^/(.*) https://$host/$1 permanent;
Expand Down

0 comments on commit ef36d3c

Please sign in to comment.