Simple go app that checks if my server is up every hour from docker container
Find a file
2026-01-05 21:01:25 +01:00
cmd [project] init 2024-07-25 21:20:00 +02:00
src [ip check] fix wg 2026-01-05 21:01:25 +01:00
.dockerignore [project] init 2024-07-25 21:20:00 +02:00
.gitignore [project] init 2024-07-25 21:20:00 +02:00
docker-compose.yaml [docker-compose] arch bump 2026-01-05 20:56:17 +01:00
Dockerfile [project] init 2024-07-25 21:20:00 +02:00
env.template [check ip addr] make this optional 2026-01-05 20:52:04 +01:00
go.mod [project] init 2024-07-25 21:20:00 +02:00
go.sum [project] init 2024-07-25 21:20:00 +02:00
Makefile [multiarch push] 2024-12-03 13:30:01 +01:00
Readme.md [readme] bump 2026-01-05 20:52:14 +01:00

ServerChecker

Simple golang utility for checking if my server is up and running and accessible from the web and if it encounters any problems report is sent to specified discord channel. Uses cron.

Deployment

Simply pull the image from my repo using provided docker-compose.yaml. It needs configuration via dotfile, env.template provides sample configuration.

DISCORD_TOKEN=""                 # discord token for bot
DISCORD_CHANNEL_ID=""            # discord channel id
CHECK_DOMAINS="[\"google.com\"]" # domains to check
CHECK_NOTIFY_EXPIRATION_DAYS=7   # days to notify before ssl cert expiration
CHECK_IP="false"                 # whether to check if domain ip address is same as local machine one, for dynamic ipv4 users