Skip to content

Commit

Permalink
Add suggestion for secure cyphers to nginx.conf (mastodon#26349)
Browse files Browse the repository at this point in the history
  • Loading branch information
gunchleoc authored Aug 31, 2023
1 parent 430eac3 commit cb9f960
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dist/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ server {
server_name example.com;

ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!MEDIUM:!LOW:!aNULL:!NULL:!SHA;

# You can use https://ssl-config.mozilla.org/ to generate your cipher set.
# We recommend their "Intermediate" level.
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;

ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_session_tickets off;
Expand Down

0 comments on commit cb9f960

Please sign in to comment.