diff options
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | lib/xdsconfig/fileconfig.go | 3 |
2 files changed, 4 insertions, 2 deletions
@@ -56,7 +56,8 @@ xds-server configuration is driven by a JSON config file (`config.json`). Here is the logic to determine which `config.json` file will be used: 1. from command line option: `--config myConfig.json` 2. `$HOME/.xds/config.json` file -3. `<xds-server executable dir>/config.json` file +3. `<current dir>/config.json` file +4. `<xds-server executable dir>/config.json` file Supported fields in configuration file are: ```json diff --git a/lib/xdsconfig/fileconfig.go b/lib/xdsconfig/fileconfig.go index ed3e82d..7370ed0 100644 --- a/lib/xdsconfig/fileconfig.go +++ b/lib/xdsconfig/fileconfig.go @@ -28,7 +28,8 @@ type FileConfig struct { // Order to determine which config file is used: // 1/ from command line option: "--config myConfig.json" // 2/ $HOME/.xds/config.json file -// 3/ <xds-server executable dir>/config.json file +// 3/ <current_dir>/agent-config.json file +// 4/ <xds-server executable dir>/config.json file func updateConfigFromFile(c *Config, confFile string) error { |