GitLaB Nginx 在 gitlab-http.conf 中关闭无效值“+TLSv1.1”

GitLaB Nginx down invalid value "+TLSv1.1" in gitlab-http.conf

我最近更新了GitLab,现在GitLab内置的Nginx服务器不再启动。 /var/log/gitlab/nginx/current 不断打印相同的错误消息:

nginx: [warn] invalid value "+TLSv1.1" in /var/opt/gitlab/nginx/conf/gitlab-http.conf:66

以下是gitlab-http.conf:66的内容:

ssl_protocols  +TLSv1.1 +TLSv1.2;

请注意,我没有触及 GitLab 配置文件,sudo gitlab-ctl reconfigure 完成得很好。我通常使用自签名证书通过 SSL 为我的 GitLab 安装提供服务,但我过去没有遇到任何问题。

这是 sudo gitlab-rake gitlab:env:info 的输出:

系统信息

System:          elementary OS 0.3.2
Current User:    git
Using RVM:       no
Ruby Version:    2.1.8p440
Gem Version:     2.5.1
Bundler Version: 1.10.6
Rake Version:    10.5.0
Sidekiq Version: 4.0.1

GitLab资料

Version:         8.7.5
Revision:        0e8b7d8
Directory:       /opt/gitlab/embedded/service/gitlab-rails
DB Adapter:      postgresql
Using LDAP:      no
Using Omniauth:  no

GitLab Shell

Version:         2.7.2
Repositories:    /var/opt/gitlab/git-data/repositories
Hooks:           /opt/gitlab/embedded/service/gitlab-shell/hooks/
Git:             /opt/gitlab/embedded/bin/git

好像没有其他人有同样的问题,我也很茫然。请帮忙

您应该检查文档中 ssl_protocols 指令的语法:http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_protocols

没有+TLSv1.1 +TLSv1.2这样的选项。