A small HTTP server written in Go that accepts JSON messages and relays them to a Discord webhook.
| Variable | Required | Description |
|---|---|---|
DISCORD_WEBHOOK_URL |
Yes | Discord webhook URL to relay messages to |
API_KEY |
Yes | Bearer token used for authentication |
PORT |
No | Port to listen on (default: 8080) |
Returns 200 ok when the server is running.
Relays a message to the configured Discord webhook.
Authentication: Authorization: Bearer <API_KEY>
Request body:
{
"content": "your message here"
}Example:
curl -X POST https://minifox.homek8s.com/send \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"content": "your message here"}'Kubernetes manifests are in kubernetes/. Update the secret before deploying:
# Update kubernetes/secret.yaml with real values, then apply
kubectl apply -f kubernetes/deployment.yaml
kubectl apply -f kubernetes/secret.yamlThe deployment uses Reloader to automatically restart when the secret changes.