1
0
Fork 0

Add launch configuration documentation

This commit is contained in:
emile 2016-01-22 12:36:24 +01:00
parent 35070f7c1c
commit 8adadaa5d4
No known key found for this signature in database
GPG key ID: D808B4C167352E59
3 changed files with 104 additions and 7 deletions

View file

@ -94,11 +94,11 @@ func LoadConfiguration() *GlobalConfiguration {
} else {
viper.SetConfigName("traefik") // name of config file (without extension)
}
viper.AddConfigPath("/etc/traefik/") // path to look for the config file in
viper.AddConfigPath("$HOME/.traefik") // call multiple times to add many search paths
viper.AddConfigPath(".") // optionally look for config in the working directory
err := viper.ReadInConfig() // Find and read the config file
if err != nil { // Handle errors reading the config file
viper.AddConfigPath("/etc/traefik/") // path to look for the config file in
viper.AddConfigPath("$HOME/.traefik/") // call multiple times to add many search paths
viper.AddConfigPath(".") // optionally look for config in the working directory
err := viper.ReadInConfig() // Find and read the config file
if err != nil { // Handle errors reading the config file
fmtlog.Fatalf("Error reading file: %s", err)
}
if len(arguments.Certificates) > 0 {