Online at uptime-kuma-static.mawoka.eu.org
I really love Uptime Kuma by Louis Lam
, but I wanted a status-page like Statuspage.io or similar,
so I created this piece of software (which is also responsive). It fetches the data
from Uptime Kuma and
renders a HTML-Template with the data, which can look like this:
- Pull the image:
docker pull ghcr.io/mawoka-myblock/uptime-kuma-static:latest
- Run the container:
docker run --rm \
-e "PASSWORD_LOGIN=true" \
-e "UTKUMA_PASSWORD=YOUR_PASSWORD" \
-e "UTKUMA_USERNAME=YOUR_USERNAME" \
-e "UTKUMA_URL=YOUR_URL" \
-v "$(pwd)"/out:/app/out \
--name utkuma-static ghcr.io/mawoka-myblock/uptime-kuma-static:latest
- Just serve the
index.html
in theout/
-directory with your favourite webserver (I prefer nginx (Btw: Did you know thatnginx
is pronounced"engine-x"
?)) - (Optional) To tun the dokcer-image every x minutes,
add the following line to your crontab, by entering
crontab -e
:Crontab explanation0 */1 * * * docker run --rm -e "PASSWORD_LOGIN=true" -e "UTKUMA_PASSWORD=YOUR_PASSWORD" -e "UTKUMA_USERNAME=YOUR_USERNAME" -e "UTKUMA_URL=YOUR_URL" -v /nginx/out:/app/out --name utkuma-static ghcr.io/mawoka-myblock/uptime-kuma-static:latest
Environment-Variable | Value | Explanation | Standard |
---|---|---|---|
PASSWORD_LOGIN |
boolean |
If set to true login over UTKUMA_PASSWORD and UTKUMA_TOKEN , otherwise UTKUMA_TOKEN has to be set. |
❌ |
UTKUMA_PASSWORD |
string |
The password for your account (Necessary if PASSWORD_LOGIN is set to true ) |
❌ |
UTKUMA_USERNAME |
string |
The username of your account (Necessary if PASSWORD_LOGIN is set to true ) |
❌ |
UTKUMA_TOKEN |
string |
The token for your account (Necessary if PASSWORD_LOGIN is set to false ) |
❌ |
UTKUMA_URL |
string |
The base-url of your uptime-kuma-instance (eg. https://demo.uptime.kuma.pet:27000/ ) |
❌ |