mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19:43 +02:00
Support TLS version selection
Allow config file and ENV variables to define minimum TLS version used for SSL connections. tlsversion=1.3
This commit is contained in:
parent
828c01d189
commit
876775b395
3 changed files with 28 additions and 5 deletions
2
core/env/flags.go
vendored
2
core/env/flags.go
vendored
|
@ -21,6 +21,7 @@ type Flags struct {
|
|||
ForceHTTPPort2SSL string // (optional) HTTP that should be redirected to HTTPS
|
||||
SSLCertFile string // (optional) name of SSL certificate PEM file
|
||||
SSLKeyFile string // (optional) name of SSL key PEM file
|
||||
TLSVersion string // (optional) minimum TLS version for SSL connections
|
||||
SiteMode string // (optional) if 1 then serve offline web page
|
||||
Location string // reserved
|
||||
ConfigSource string // tells us if configuration info was obtained from command line or config file
|
||||
|
@ -43,6 +44,7 @@ type httpConfig struct {
|
|||
ForceSSLPort int
|
||||
Cert string
|
||||
Key string
|
||||
TLSVersion string
|
||||
}
|
||||
|
||||
type databaseConfig struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue