Fixing doc for default value of checknewversion
This commit is contained in:
parent
dd0701dd16
commit
c35a8bdb15
3 changed files with 8 additions and 8 deletions
|
@ -184,7 +184,7 @@ plugin's module name.
|
||||||
plugin's version.
|
plugin's version.
|
||||||
|
|
||||||
`--global.checknewversion`:
|
`--global.checknewversion`:
|
||||||
Periodically check if a new version has been released. (Default: ```false```)
|
Periodically check if a new version has been released. (Default: ```true```)
|
||||||
|
|
||||||
`--global.sendanonymoususage`:
|
`--global.sendanonymoususage`:
|
||||||
Periodically send anonymous usage statistics. If the option is not specified, it will be enabled by default. (Default: ```false```)
|
Periodically send anonymous usage statistics. If the option is not specified, it will be enabled by default. (Default: ```false```)
|
||||||
|
@ -694,7 +694,7 @@ Display additional provider logs. (Default: ```false```)
|
||||||
Watch provider. (Default: ```true```)
|
Watch provider. (Default: ```true```)
|
||||||
|
|
||||||
`--providers.providersthrottleduration`:
|
`--providers.providersthrottleduration`:
|
||||||
Backends throttle duration: minimum duration between 2 events from providers before applying a new configuration. It avoids unnecessary reloads if multiples events are sent in a short amount of time. (Default: ```0```)
|
Backends throttle duration: minimum duration between 2 events from providers before applying a new configuration. It avoids unnecessary reloads if multiples events are sent in a short amount of time. (Default: ```2```)
|
||||||
|
|
||||||
`--providers.rancher`:
|
`--providers.rancher`:
|
||||||
Enable Rancher backend with default settings. (Default: ```false```)
|
Enable Rancher backend with default settings. (Default: ```false```)
|
||||||
|
@ -802,7 +802,7 @@ The amount of time to wait for a server's response headers after fully writing t
|
||||||
Disable SSL certificate verification. (Default: ```false```)
|
Disable SSL certificate verification. (Default: ```false```)
|
||||||
|
|
||||||
`--serverstransport.maxidleconnsperhost`:
|
`--serverstransport.maxidleconnsperhost`:
|
||||||
If non-zero, controls the maximum idle (keep-alive) to keep per-host. If zero, DefaultMaxIdleConnsPerHost is used (Default: ```0```)
|
If non-zero, controls the maximum idle (keep-alive) to keep per-host. If zero, DefaultMaxIdleConnsPerHost is used (Default: ```200```)
|
||||||
|
|
||||||
`--serverstransport.rootcas`:
|
`--serverstransport.rootcas`:
|
||||||
Add cert file for self-signed certificate.
|
Add cert file for self-signed certificate.
|
||||||
|
|
|
@ -184,7 +184,7 @@ plugin's module name.
|
||||||
plugin's version.
|
plugin's version.
|
||||||
|
|
||||||
`TRAEFIK_GLOBAL_CHECKNEWVERSION`:
|
`TRAEFIK_GLOBAL_CHECKNEWVERSION`:
|
||||||
Periodically check if a new version has been released. (Default: ```false```)
|
Periodically check if a new version has been released. (Default: ```true```)
|
||||||
|
|
||||||
`TRAEFIK_GLOBAL_SENDANONYMOUSUSAGE`:
|
`TRAEFIK_GLOBAL_SENDANONYMOUSUSAGE`:
|
||||||
Periodically send anonymous usage statistics. If the option is not specified, it will be enabled by default. (Default: ```false```)
|
Periodically send anonymous usage statistics. If the option is not specified, it will be enabled by default. (Default: ```false```)
|
||||||
|
@ -694,7 +694,7 @@ Display additional provider logs. (Default: ```false```)
|
||||||
Watch provider. (Default: ```true```)
|
Watch provider. (Default: ```true```)
|
||||||
|
|
||||||
`TRAEFIK_PROVIDERS_PROVIDERSTHROTTLEDURATION`:
|
`TRAEFIK_PROVIDERS_PROVIDERSTHROTTLEDURATION`:
|
||||||
Backends throttle duration: minimum duration between 2 events from providers before applying a new configuration. It avoids unnecessary reloads if multiples events are sent in a short amount of time. (Default: ```0```)
|
Backends throttle duration: minimum duration between 2 events from providers before applying a new configuration. It avoids unnecessary reloads if multiples events are sent in a short amount of time. (Default: ```2```)
|
||||||
|
|
||||||
`TRAEFIK_PROVIDERS_RANCHER`:
|
`TRAEFIK_PROVIDERS_RANCHER`:
|
||||||
Enable Rancher backend with default settings. (Default: ```false```)
|
Enable Rancher backend with default settings. (Default: ```false```)
|
||||||
|
@ -802,7 +802,7 @@ The amount of time to wait for a server's response headers after fully writing t
|
||||||
Disable SSL certificate verification. (Default: ```false```)
|
Disable SSL certificate verification. (Default: ```false```)
|
||||||
|
|
||||||
`TRAEFIK_SERVERSTRANSPORT_MAXIDLECONNSPERHOST`:
|
`TRAEFIK_SERVERSTRANSPORT_MAXIDLECONNSPERHOST`:
|
||||||
If non-zero, controls the maximum idle (keep-alive) to keep per-host. If zero, DefaultMaxIdleConnsPerHost is used (Default: ```0```)
|
If non-zero, controls the maximum idle (keep-alive) to keep per-host. If zero, DefaultMaxIdleConnsPerHost is used (Default: ```200```)
|
||||||
|
|
||||||
`TRAEFIK_SERVERSTRANSPORT_ROOTCAS`:
|
`TRAEFIK_SERVERSTRANSPORT_ROOTCAS`:
|
||||||
Add cert file for self-signed certificate.
|
Add cert file for self-signed certificate.
|
||||||
|
|
|
@ -14,7 +14,7 @@ import (
|
||||||
"github.com/traefik/paerser/flag"
|
"github.com/traefik/paerser/flag"
|
||||||
"github.com/traefik/paerser/generator"
|
"github.com/traefik/paerser/generator"
|
||||||
"github.com/traefik/paerser/parser"
|
"github.com/traefik/paerser/parser"
|
||||||
"github.com/traefik/traefik/v2/pkg/config/static"
|
"github.com/traefik/traefik/v2/cmd"
|
||||||
"github.com/traefik/traefik/v2/pkg/log"
|
"github.com/traefik/traefik/v2/pkg/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ func main() {
|
||||||
func genStaticConfDoc(outputFile, prefix string, encodeFn func(interface{}) ([]parser.Flat, error)) {
|
func genStaticConfDoc(outputFile, prefix string, encodeFn func(interface{}) ([]parser.Flat, error)) {
|
||||||
logger := log.WithoutContext().WithField("file", outputFile)
|
logger := log.WithoutContext().WithField("file", outputFile)
|
||||||
|
|
||||||
element := &static.Configuration{}
|
element := &cmd.NewTraefikConfiguration().Configuration
|
||||||
|
|
||||||
generator.Generate(element)
|
generator.Generate(element)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue