Adds TLS SNI support for the frontends
This commit is contained in:
parent
1604786285
commit
d6e28a923c
11 changed files with 268 additions and 14 deletions
|
@ -16,7 +16,7 @@ type GlobalConfiguration struct {
|
|||
GraceTimeOut int64
|
||||
AccessLogsFile string
|
||||
TraefikLogsFile string
|
||||
CertFile, KeyFile string
|
||||
Certificates []Certificate
|
||||
LogLevel string
|
||||
ProvidersThrottleDuration time.Duration
|
||||
Docker *provider.Docker
|
||||
|
@ -29,6 +29,12 @@ type GlobalConfiguration struct {
|
|||
Boltdb *provider.BoltDb
|
||||
}
|
||||
|
||||
// Certificate holds a SSL cert/key pair
|
||||
type Certificate struct {
|
||||
CertFile string
|
||||
KeyFile string
|
||||
}
|
||||
|
||||
// NewGlobalConfiguration returns a GlobalConfiguration with default values.
|
||||
func NewGlobalConfiguration() *GlobalConfiguration {
|
||||
globalConfiguration := new(GlobalConfiguration)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue