You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
## [Unreleased]
9
9
### Added
10
10
- Add `/health` and `/metrics` (Prometheus-compatible) HTTP endpoints, with a `HEALTHCHECK` in the Dockerfile, see #164. Listens on port 8090 by default (configurable via `healthcheck_port`, set to `null` to disable)
11
+
- Add `files.preprocess` config option (default `false`) to preprocess static monitor files as Tera templates before parsing, allowing use of `get_env` and other Tera functions inside JSON/TOML monitor files. The `json_escape`/`json_unescape` and `toml_escape`/`toml_unescape` filters are provided for safe value embedding, closes #187
11
12
12
13
### Changed
13
14
- Docker container/service listing failures no longer abort the entire sync — a warning is logged and the sync continues, see #116
Copy file name to clipboardExpand all lines: docs/autokuma/configuration.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ AutoKuma is configured through environment variables or a configuration file. Al
38
38
|`AUTOKUMA__KUBERNETES__ENABLED`|`kubernetes.enabled`| Enable or disable the Kubernetes source |
39
39
|`AUTOKUMA__FILES__ENABLED`|`files.enabled`| Enable or disable the Files source |
40
40
|`AUTOKUMA__FILES__FOLLOW_SYMLINKS`|`files.follow_symlinks`| Follow symlinks when scanning for static monitors |
41
+
|`AUTOKUMA__FILES__PREPROCESS`|`files.preprocess`| Preprocess static monitor files as Tera templates before parsing (default: `false`). Allows use of `get_env` and other Tera expressions inside `.json`/`.toml` monitor files. The following filters are available to safely embed values into file contents: `json_escape` / `json_unescape` for JSON files, `toml_escape` / `toml_unescape` for TOML files |
0 commit comments