File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 107
107
default [ 'gitlab' ] [ 'ssl_certificate' ] = "/etc/nginx/ssl/certs/#{ node [ 'fqdn' ] } .pem"
108
108
default [ 'gitlab' ] [ 'ssl_certificate_key' ] = "/etc/nginx/ssl/private/#{ node [ 'fqdn' ] } .key"
109
109
110
+ # Backwards compatible ciphers needed for Java IDEs
111
+ default [ 'gitlab' ] [ 'ssl_ciphers' ] = 'ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4'
112
+ default [ 'gitlab' ] [ 'ssl_protocols' ] = 'TLSv1 TLSv1.1 TLSv1.2'
113
+
110
114
default [ 'gitlab' ] [ 'backup_path' ] = node [ 'gitlab' ] [ 'app_home' ] + '/backups'
111
115
default [ 'gitlab' ] [ 'backup_keep_time' ] = 604_800
112
116
Original file line number Diff line number Diff line change @@ -478,6 +478,8 @@ class unix_stream_socket connectto;
478
478
https_boolean : node [ 'gitlab' ] [ 'https' ] ,
479
479
ssl_certificate : node [ 'gitlab' ] [ 'ssl_certificate' ] ,
480
480
ssl_certificate_key : node [ 'gitlab' ] [ 'ssl_certificate_key' ] ,
481
+ ssl_ciphers : node [ 'gitlab' ] [ 'ssl_ciphers' ] ,
482
+ ssl_protocols : node [ 'gitlab' ] [ 'ssl_protocols' ] ,
481
483
listen : "#{ node [ 'gitlab' ] [ 'listen_ip' ] } :#{ listen_port } "
482
484
)
483
485
end
Original file line number Diff line number Diff line change @@ -83,9 +83,8 @@ server {
83
83
ssl_certificate <%= @ssl_certificate %> ;
84
84
ssl_certificate_key <%= @ssl_certificate_key %> ;
85
85
86
- # GitLab needs backwards compatible ciphers to retain compatibility with Java IDEs
87
- ssl_ciphers "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4";
88
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
86
+ ssl_ciphers <%= @ssl_ciphers %> ;
87
+ ssl_protocols <%= @ssl_protocols %> ;
89
88
ssl_prefer_server_ciphers on;
90
89
ssl_session_cache shared:SSL:10m;
91
90
ssl_session_timeout 5m;
You can’t perform that action at this time.
0 commit comments