fix: skip online table writes for curl/healthcheck requests #52

Closed
christin.loehner wants to merge 0 commits from develop into master
christin.loehner commented 2026-06-05 08:17:48 +02:00 (Migrated from gitlab.apboard.de)

apb_UserOnlineHandler() now returns immediately when the User-Agent
starts with "curl/" — covers Docker HEALTHCHECK and any monitoring
tool using plain curl. UA-based rather than IP-based so it works
for every self-hosted installation regardless of network topology.

Additionally adds public/health.php, a zero-framework endpoint that
returns HTTP 200 + {"status":"ok"} without any DB connection or
session handling. The docker-compose HEALTHCHECK now targets this
dedicated endpoint instead of the full APBoard main page.

apb_UserOnlineHandler() now returns immediately when the User-Agent starts with "curl/" — covers Docker HEALTHCHECK and any monitoring tool using plain curl. UA-based rather than IP-based so it works for every self-hosted installation regardless of network topology. Additionally adds public/health.php, a zero-framework endpoint that returns HTTP 200 + {"status":"ok"} without any DB connection or session handling. The docker-compose HEALTHCHECK now targets this dedicated endpoint instead of the full APBoard main page.
christin.loehner (Migrated from gitlab.apboard.de) closed this pull request 2026-06-05 08:18:03 +02:00

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
APBoard/apboard3!52
No description provided.