diff options
Diffstat (limited to 'pkg/setting/setting.go')
-rw-r--r-- | pkg/setting/setting.go | 2 |
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" { |