Skip to content

Commit

Permalink
add default config for "files" source
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBoot committed Jan 23, 2025
1 parent 3188db2 commit 3236fb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ AutoKuma can be configured using the following environment variables/config keys
| `AUTOKUMA__DOCKER__SOURCE` | `docker.source` | Whether monitors should be created from `Containers` or `Services` labels (or `Both`). |
| `AUTOKUMA__DOCKER__TLS__VERIFY` | `docker.tls.verify` | Whether to verify the TLS certificate or not. |
| `AUTOKUMA__DOCKER__TLS__CERT` | `docker.tls.cert` | The path to a custom tls certificate in PEM format. |
| `AUTOKUMA__FILES__FOLLOW_SYMLINKS` | `files.follow_symlinks` | Wether AutoKuma should follow symlinks when looking for "static monitors" (Defaults to false) |
| `AUTOKUMA__FILES__FOLLOW_SYMLINKS` | `files.follow_symlinks` | Whether AutoKuma should follow symlinks when looking for "static monitors" (Defaults to false) |

AutoKuma will read configuration from a file named `autokuma.{toml,yaml,json}` in the current directory and in the following locations:

Expand Down
2 changes: 1 addition & 1 deletion autokuma/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async fn main() {
Config::builder()
.add_source(File::from_str(
&serde_json::to_string(
&json!({"kuma": {"tls": {}}, "docker": {}, "kubernetes": {}}),
&json!({"kuma": {"tls": {}}, "docker": {}, "files": {}, "kubernetes": {}}),
)
.unwrap(),
FileFormat::Json,
Expand Down

0 comments on commit 3236fb9

Please sign in to comment.