Repository navigation
How to configure Notifications for a Homelab setup? #947
|
I am trying to configure my
Current Setup
Error LogWhen I setup my {
"timestamp": "2026-09-10T13:11:41.046Z",
"request_id": "717028b8-7c01-4a49-bb1a-766f341e7239",
"trace_id": "41ece8ed-cd39-4daf-b239-c48d59df2ae6",
"kind": "http",
"service": "healthlog",
"environment": "production",
"deploy": {
"node_version": "v22.23.1",
"hostname": "xxxxxx"
},
"level": "error",
"http": {
"method": "POST",
"path": "/api/settings/webhook/test",
"route": "/api/settings/webhook/test",
"status": 500,
"user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:155.0) Gecko/20100101 Firefox/155.0",
"ip": "10.xx.xx.xx"
},
"auth": {
"user_id": "xxxxxx",
"user_role": "ADMIN",
"auth_method": "session"
},
"external_calls": [
{
"service": "webhook",
"method": "sendNotification",
"duration_ms": 99,
"error": "safeFetch refused a private resolved destination"
}
],
"duration_ms": 159,
"runtime": {
"loop_max_ms": 1.7,
"loop_last_ms": 0.5
}
}Initially I thought this was a bug but after reviewing the Privacy Architecture documentation and few existing issues #218 , #217 - it looks like this is intentional and a safety feature. Sending outbound notifications are only allowed to valid public IPs. Since my setup is built entirely on homelab environment, my gotify URL resolves to a private IP. Is there a configuration setting or a workaround to send notifications in such valid scenarios? |
Replies: 3 comments 12 replies
|
You read it right: this is intentional, not a bug. Every outbound request There is currently no switch for the notification channels. Two other The plan is a third variable of the Nightscout shape, Until then the only thing that works with a private target is a name that |
|
v1.38.17 is out with this: https://github.com/MBombeck/HealthLog/releases/tag/v1.38.17 Set If it still refuses on your setup, the exact wording of the refusal and the value you set (with the host masked if you prefer) is all I need. |





v1.38.17 is out with this: https://github.com/MBombeck/HealthLog/releases/tag/v1.38.17
Set
NOTIFICATION_PRIVATE_ORIGINSin the server environment to the exact origin of your Gotify, for examplehttps://gotify.example.com(scheme, host and port must match the URL you save; no path, no wildcard, no CIDR), pull the new image, and the test button will reach it. A private target that is not listed now answers with a message naming the variable instead of a bare failure, so the log detour you took is no longer needed. The environment-variables reference and the notifications guide on the docs site describe the grammar and what stays refused even when listed.If it still refuses on your setup, t…