LoadConfig loads the config from configFile and adapts it using adapterName. If adapterName is specified, configFile must be also. If no configFile is specified, it tries loading a default config file. The lack of a config file is not treated as an error, but false will be returned if there is no co
(configFile, adapterName string)
| 106 | // - adapter used ("" if none) |
| 107 | // - error, if any |
| 108 | func LoadConfig(configFile, adapterName string) ([]byte, string, string, error) { |
| 109 | return loadConfigWithLogger(caddy.Log(), configFile, adapterName) |
| 110 | } |
| 111 | |
| 112 | func isCaddyfile(configFile, adapterName string) (bool, error) { |
| 113 | if adapterName == "caddyfile" { |
no test coverage detected