Skip to content

Commit

Permalink
fix doc about file.filename
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez authored and traefiker committed Sep 26, 2019
1 parent 6f6f999 commit ea78808
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/content/reference/static-configuration/cli-ref.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,10 @@ Watch provider. (Default: ```true```)
Enable debug logging of generated configuration template. (Default: ```false```)

`--providers.file.directory`:
Load configuration from one or more .toml files in a directory.
Load dynamic configuration from one or more .toml or .yml files in a directory.

`--providers.file.filename`:
Override default configuration template. For advanced users :)
Load dynamic configuration from a file.

`--providers.file.watch`:
Watch provider. (Default: ```true```)
Expand Down
4 changes: 2 additions & 2 deletions docs/content/reference/static-configuration/env-ref.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,10 @@ Watch provider. (Default: ```true```)
Enable debug logging of generated configuration template. (Default: ```false```)

`TRAEFIK_PROVIDERS_FILE_DIRECTORY`:
Load configuration from one or more .toml files in a directory.
Load dynamic configuration from one or more .toml or .yml files in a directory.

`TRAEFIK_PROVIDERS_FILE_FILENAME`:
Override default configuration template. For advanced users :)
Load dynamic configuration from a file.

`TRAEFIK_PROVIDERS_FILE_WATCH`:
Watch provider. (Default: ```true```)
Expand Down
4 changes: 2 additions & 2 deletions pkg/provider/file/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ var _ provider.Provider = (*Provider)(nil)

// Provider holds configurations of the provider.
type Provider struct {
Directory string `description:"Load configuration from one or more .toml files in a directory." json:"directory,omitempty" toml:"directory,omitempty" yaml:"directory,omitempty" export:"true"`
Directory string `description:"Load dynamic configuration from one or more .toml or .yml files in a directory." json:"directory,omitempty" toml:"directory,omitempty" yaml:"directory,omitempty" export:"true"`
Watch bool `description:"Watch provider." json:"watch,omitempty" toml:"watch,omitempty" yaml:"watch,omitempty" export:"true"`
Filename string `description:"Override default configuration template. For advanced users :)" json:"filename,omitempty" toml:"filename,omitempty" yaml:"filename,omitempty" export:"true"`
Filename string `description:"Load dynamic configuration from a file." json:"filename,omitempty" toml:"filename,omitempty" yaml:"filename,omitempty" export:"true"`
DebugLogGeneratedTemplate bool `description:"Enable debug logging of generated configuration template." json:"debugLogGeneratedTemplate,omitempty" toml:"debugLogGeneratedTemplate,omitempty" yaml:"debugLogGeneratedTemplate,omitempty" export:"true"`
}

Expand Down

0 comments on commit ea78808

Please sign in to comment.