Skip to content

Commit

Permalink
Update default SSL config (alfg#133)
Browse files Browse the repository at this point in the history
* Update default SSL config

Disable insecure ciphers and protocols. Bump ssl_session_timeout to recommended 1d. 
Based on Mozilla Guideline v5.6.

* Update nginx-cuda.conf
  • Loading branch information
rmens authored Jul 30, 2022
1 parent 5a54962 commit 1c0da15
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions nginx-cuda.conf
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ http {
access_log /dev/stdout combined;

# Uncomment these lines to enable SSL.
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
# ssl_session_cache shared:SSL:10m;
# ssl_session_timeout 10m;
# ssl_protocols TLSv1.2 TLSv1.3;
# 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;
# ssl_prefer_server_ciphers off;
# ssl_session_cache shared:SSL:10m;
# ssl_session_timeout 1d;

server {
listen ${HTTP_PORT};
Expand Down
9 changes: 5 additions & 4 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ http {
access_log /dev/stdout combined;

# Uncomment these lines to enable SSL.
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
# ssl_session_cache shared:SSL:10m;
# ssl_session_timeout 10m;
# ssl_protocols TLSv1.2 TLSv1.3;
# 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;
# ssl_prefer_server_ciphers off;
# ssl_session_cache shared:SSL:10m;
# ssl_session_timeout 1d;

server {
listen ${HTTP_PORT};
Expand Down

0 comments on commit 1c0da15

Please sign in to comment.