config: make config file relative to the config dir

a configuration parsing error is now fatal
This commit is contained in:
Nicola Murino
2020-12-03 17:16:35 +01:00
parent 2a9ed0abca
commit 95c6d41c35
7 changed files with 87 additions and 54 deletions

View File

@@ -124,6 +124,7 @@ Please take a look at the usage below to customize the serving parameters`,
}
service := service.Service{
ConfigDir: filepath.Clean(defaultConfigDir),
ConfigFile: defaultConfigFile,
LogFilePath: portableLogFile,
LogMaxSize: defaultLogMaxSize,
LogMaxBackups: defaultLogMaxBackup,