mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-23 10:02:28 -05:00
[PR #2932] Feature/local resource healthchecks #12026
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/pangolin/pull/2932
Author: @pizzaandcheese
Created: 4/29/2026
Status: 🔄 Open
Base:
main← Head:feature/local-resource-healthchecks📝 Commits (2)
b755c39feat(healthcheck): run healthchecks for local sites server-side34d41d9feat(healthcheck): enable healthcheck UI for local site types📊 Changes
6 files changed (+367 additions, -6 deletions)
View changed files
📝
server/routers/target/index.ts(+1 -0)➕
server/routers/target/localHealthChecker.ts(+349 -0)📝
server/routers/target/updateTarget.ts(+9 -4)📝
server/routers/ws/messageHandlers.ts(+6 -0)📝
src/app/[orgId]/settings/resources/proxy/[niceId]/proxy/page.tsx(+1 -1)📝
src/app/[orgId]/settings/resources/proxy/create/page.tsx(+1 -1)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
This change adds healthcheck support for local sites in Pangolin.
How to test?
You need a Pangolin instance with at least one Local site configured — a site where the target is directly reachable by the Pangolin server over the network (not tunnelled through Newt).
Test 1: Healthcheck turns healthy
Test 2: Healthcheck detects a failure
Test 3: TCP mode
Repeat tests 1 and 2 using TCP mode instead of HTTP to verify the TCP probe path works independently
Test 4: Config options
Test 5: WireGuard sites are unaffected
On a WireGuard site, verify the healthcheck button still does not appear and no probing happens
Test 6: Newt sites are unaffected
On a Newt site, verify healthchecks still work exactly as before — the Newt agent should still be doing the probing, not the server
Test 7: Enable/disable toggle
Disable an active healthcheck and verify the status resets to Unknown and polling stops. Re-enable it and verify it resumes from Unknown → Unhealthy → Healthy
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.