aboutsummaryrefslogtreecommitdiff
path: root/pkg/setting/setting.go
diff options
context:
space:
mode:
authorspacetourist <guy.callum@gmail.com>2017-05-20 13:31:25 +0100
committer无闻 <u@gogs.io>2017-05-20 08:31:25 -0400
commit0a6ceabb9baa4f0058f4403b392b8fda845a5d5a (patch)
tree55d884e27212b4aec4e5b73a3e490d37fa5ac9a0 /pkg/setting/setting.go
parentd71a8fece853911fb4702e43447da6fffd52941b (diff)
Allow configurable HTTPS SSL/TLS version(#4451)
Diffstat (limited to 'pkg/setting/setting.go')
-rw-r--r--pkg/setting/setting.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/setting/setting.go b/pkg/setting/setting.go
index c8902b45..1b701d12 100644
--- a/pkg/setting/setting.go
+++ b/pkg/setting/setting.go
@@ -69,6 +69,7 @@ var (
OfflineMode bool
DisableRouterLog bool
CertFile, KeyFile string
+ TLSMinVersion string
StaticRootPath string
EnableGzip bool
LandingPageURL LandingPage
@@ -438,6 +439,7 @@ func NewContext() {
Protocol = SCHEME_HTTPS
CertFile = sec.Key("CERT_FILE").String()
KeyFile = sec.Key("KEY_FILE").String()
+ TLSMinVersion = sec.Key("TLS_MIN_VERSION").String()
} else if sec.Key("PROTOCOL").String() == "fcgi" {
Protocol = SCHEME_FCGI
} else if sec.Key("PROTOCOL").String() == "unix" {