Fix default value for InsecureSNI when global is not set
This commit is contained in:
parent
06dcf8d8aa
commit
143e9b6f9c
2 changed files with 2 additions and 1 deletions
|
@ -20,6 +20,7 @@ func NewTraefikConfiguration() *TraefikCmdConfiguration {
|
||||||
Configuration: static.Configuration{
|
Configuration: static.Configuration{
|
||||||
Global: &static.Global{
|
Global: &static.Global{
|
||||||
CheckNewVersion: true,
|
CheckNewVersion: true,
|
||||||
|
InsecureSNI: true,
|
||||||
},
|
},
|
||||||
EntryPoints: make(static.EntryPoints),
|
EntryPoints: make(static.EntryPoints),
|
||||||
Providers: &static.Providers{
|
Providers: &static.Providers{
|
||||||
|
|
|
@ -79,7 +79,7 @@ type CertificateResolver struct {
|
||||||
type Global struct {
|
type Global struct {
|
||||||
CheckNewVersion bool `description:"Periodically check if a new version has been released." json:"checkNewVersion,omitempty" toml:"checkNewVersion,omitempty" yaml:"checkNewVersion,omitempty" label:"allowEmpty" export:"true"`
|
CheckNewVersion bool `description:"Periodically check if a new version has been released." json:"checkNewVersion,omitempty" toml:"checkNewVersion,omitempty" yaml:"checkNewVersion,omitempty" label:"allowEmpty" export:"true"`
|
||||||
SendAnonymousUsage bool `description:"Periodically send anonymous usage statistics. If the option is not specified, it will be enabled by default." json:"sendAnonymousUsage,omitempty" toml:"sendAnonymousUsage,omitempty" yaml:"sendAnonymousUsage,omitempty" label:"allowEmpty" export:"true"`
|
SendAnonymousUsage bool `description:"Periodically send anonymous usage statistics. If the option is not specified, it will be enabled by default." json:"sendAnonymousUsage,omitempty" toml:"sendAnonymousUsage,omitempty" yaml:"sendAnonymousUsage,omitempty" label:"allowEmpty" export:"true"`
|
||||||
InsecureSNI bool `description:"Allow domain fronting. If the option is not specified, it will be enabled by default." json:"insecureSNI,omitempty" toml:"insecureSNI,omitempty" yaml:"insecureSNI,omitempty" label:"allowEmpty" export:"true"`
|
InsecureSNI bool `description:"Allow domain fronting. If the option is not specified, it will be enabled by default." json:"insecureSNI" toml:"insecureSNI" yaml:"insecureSNI" label:"allowEmpty" export:"true"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetDefaults sets the default values.
|
// SetDefaults sets the default values.
|
||||||
|
|
Loading…
Reference in a new issue