-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Milestone
Description
If configuration file is set in the command line with "-c" option and the file name contains a dash (hyphen, minus sign) "-", Traefik will use the default configuration. It fails silently, with no messages that the file was ignored; it's only noticeable by its behaviour.
For example,
./traefic -c config.toml
correctly loads the configuration in config.toml, but
./traefic -c config-2.toml
uses default settings and ignores the configuration file.
Observed in the latest 2.0.0 alpha in Windows and Linux:
$ ./traefik version
Version: 2.0.0-alpha1
Codename: faisselle
Go version: go1.12.1
Built: 2019-03-18T14:26:35Z
OS/Arch: linux/amd64
>traefik.exe version
2019/03/21 13:51:55 Using high precision timer
Version: 2.0.0-alpha1
Codename: faisselle
Go version: go1.12.1
Built: 2019-03-18T14:40:53Z
OS/Arch: windows/amd64
Example configuration:
[global]
sendanonymoususage = falseIf the configuration file is called "config-2.toml", there will be a message "You haven't specify the sendAnonymousUsage option, it will be enable by default."
Workaround:
./traefik --configfile=config-2.toml
works correctly