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
Add UPTIME_KUMA_API_VERSION environment variable to support both Uptime Kuma v1.x and v2.x.
- Default to v1 (uptime-kuma-api) for backwards compatibility
- Set UPTIME_KUMA_API_VERSION=2 to use v2 (uptime-kuma-api-v2)
- Updated README with new environment variable documentation
- Updated library references in documentation
Signed-off-by: Ben Lawson <[email protected]>
|`UPTIME_KUMA_URL`| Yes |`http://uptime-kuma:3001/`| The URL to the Uptime Kuma instance. Please note this cannot be the domain that it configured by SWAG as during initialization phase of the container those domains are not yet available. Instead use the docker container name. |
20
-
|`UPTIME_KUMA_USERNAME`| Yes |`admin`| Your Uptime Kuma username |
21
-
|`UPTIME_KUMA_PASSWORD`| Yes |`password`| Your Uptime Kuma password |
17
+
| Name | Required | Default | Example | Description |
|`UPTIME_KUMA_URL`| Yes ||`http://uptime-kuma:3001/`| The URL to the Uptime Kuma instance. Please note this cannot be the domain that it configured by SWAG as during initialization phase of the container those domains are not yet available. Instead use the docker container name. |
20
+
|`UPTIME_KUMA_USERNAME`| Yes ||`admin`| Your Uptime Kuma username |
21
+
|`UPTIME_KUMA_PASSWORD`| Yes ||`password`| Your Uptime Kuma password |
22
+
|`UPTIME_KUMA_API_VERSION`| No |`1`|`2`| Set to `2` if using Uptime Kuma v2.x. Defaults to `1` for backwards compatibility with Uptime Kuma v1.x. |
22
23
23
24
Unfortunately Uptime Kuma does not provide API keys for it's Socket.io API at the moment and Username/Password have to be used.
24
25
@@ -28,7 +29,7 @@ Finally, add `swag.uptime-kuma.enabled=true` label at minimum to each of your co
28
29
29
30
## Labels
30
31
31
-
This mod is utilizing the wonderful [Uptime Kuma API](https://github.com/lucasheld/uptime-kuma-api) library. It allows you configure nearly every property of the Monitors by defining Docker Labels. For detailed documentation of each of these properties please refer to the `add_monitor` endpoint in the [official documentation](https://uptime-kuma-api.readthedocs.io/en/latest/api.html#uptime_kuma_api.UptimeKumaApi.add_monitor).
32
+
This mod utilizes the [Uptime Kuma API](https://github.com/lucasheld/uptime-kuma-api) library (v1) or [Uptime Kuma API v2](https://github.com/exaland/uptime-kuma-api-v2) library (v2) depending on your `UPTIME_KUMA_API_VERSION` setting. It allows you to configure nearly every property of the Monitors by defining Docker Labels. For detailed documentation of each of these properties please refer to the `add_monitor` endpoint in the [API documentation](https://uptime-kuma-api.readthedocs.io/en/latest/api.html#uptime_kuma_api.UptimeKumaApi.add_monitor).
32
33
33
34
| Label | Default Value | Example Value | Description |
0 commit comments