diff --git a/examples/balance.json b/examples/balance.json index 590926d6..cb2923c8 100644 --- a/examples/balance.json +++ b/examples/balance.json @@ -1,7 +1,7 @@ { "log": { "level": "warn", - "output": "/var/log/realm.log" + "output": "realm.log" }, "network": { "no_tcp": false, diff --git a/examples/balance.toml b/examples/balance.toml index d6209b67..fdeff85f 100644 --- a/examples/balance.toml +++ b/examples/balance.toml @@ -1,6 +1,6 @@ [log] level = "warn" -output = "/var/log/realm.log" +output = "realm.log" [network] no_tcp = false diff --git a/examples/full.json b/examples/full.json index e98a485c..b3dc68fc 100644 --- a/examples/full.json +++ b/examples/full.json @@ -1,7 +1,7 @@ { "log": { "level": "warn", - "output": "/var/log/realm.log" + "output": "realm.log" }, "dns": { "mode": "ipv4_only", diff --git a/examples/full.toml b/examples/full.toml index ce71a876..7d1a5c01 100644 --- a/examples/full.toml +++ b/examples/full.toml @@ -1,6 +1,6 @@ [log] level = "warn" -output = "/var/log/realm.log" +output = "realm.log" [dns] mode = "ipv4_only" diff --git a/examples/good.json b/examples/good.json index f04de434..c2dc5034 100644 --- a/examples/good.json +++ b/examples/good.json @@ -1,7 +1,7 @@ { "log": { "level": "warn", - "output": "/var/log/realm.log" + "output": "realm.log" }, "network": { "no_tcp": false, diff --git a/examples/good.toml b/examples/good.toml index c483a3ac..c8208d06 100644 --- a/examples/good.toml +++ b/examples/good.toml @@ -1,6 +1,6 @@ [log] level = "warn" -output = "/var/log/realm.log" +output = "realm.log" [network] no_tcp = false diff --git a/readme.md b/readme.md index 08cf2771..b6318abc 100644 --- a/readme.md +++ b/readme.md @@ -164,7 +164,7 @@ Start from command line arguments: realm -l 0.0.0.0:5000 -r 1.1.1.1:443 ``` -Start with a config file: +Start with config file: ```shell # use toml @@ -172,6 +172,11 @@ realm -c config.toml # use json realm -c config.json + +# use configs in folder (since v2.6.2) +# all toml and json files are recursively included (e.g.: config/log.toml, config/node/n1.toml) +# hidden ones are recursively excluded (e.g.: config/.hidden_file, config/.hidden_dir/) +realm -c config/ ``` Start with environment variables: @@ -197,7 +202,7 @@ TOML Example ```toml [log] level = "warn" -output = "/var/log/realm.log" +output = "realm.log" [network] no_tcp = false