diff options
author | Krasimir Angelov <kangelov@gitlab.com> | 2019-05-28 12:46:50 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-05-28 12:46:50 +0300 |
commit | 1050f11598642b017486fc655561399d3766efb5 (patch) | |
tree | c559fced12a012af3f680512e3869b2e4454176c /app_config.go | |
parent | ef7fff4fa64c9cb3ca57faef3f26fa59f4f51ecb (diff) |
Add config flags to specify TLS versions
Introduce two new configuration options -tls-min-version and
-tls-max-version to control which TLS versions will be supported by the
server. Accepted values are ssl3, tls1.0, tls1.1, tls1.2, and tls1.3.
Closing https://gitlab.com/gitlab-org/gitlab-pages/issues/187
Diffstat (limited to 'app_config.go')
-rw-r--r-- | app_config.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app_config.go b/app_config.go index b2b885f9..0f075136 100644 --- a/app_config.go +++ b/app_config.go @@ -18,6 +18,8 @@ type appConfig struct { ListenAdminUnix uintptr ListenAdminHTTPS uintptr InsecureCiphers bool + TLSMinVersion uint16 + TLSMaxVersion uint16 HTTP2 bool RedirectHTTP bool |