mirror of
https://github.com/profullstack/agentbbs.git
synced 2026-12-01 01:14:47 +00:00
feat: public /api/health served by the agentbbs process
https://bbs.profullstack.com/ is Caddy's file_server, so a 200 there says nothing about the BBS. /api/health is now answered by agentbbs itself on its loopback HTTP listener (Caddy proxies it, like /verify) after a `select 1` on the SQLite store with a 3s cap: 200 {"status":"ok","db":"ok"} or 503 {"status":"error","db":"down"}, Cache-Control: no-store. Adds Store.Ping. For status.profullstack.com. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
e95f2a30c3
commit
46736484e0
4 changed files with 65 additions and 0 deletions
6
setup.sh
6
setup.sh
|
|
@ -807,6 +807,12 @@ ${DOMAIN} {
|
|||
reverse_proxy http://${HTTP_ADDR}
|
||||
}
|
||||
|
||||
# Public health check (status.profullstack.com): answered by the agentbbs
|
||||
# process itself after a SQLite query, so a 200 proves the BBS is up.
|
||||
handle /api/health {
|
||||
reverse_proxy http://${HTTP_ADDR}
|
||||
}
|
||||
|
||||
# IRC over WebSocket: Caddy terminates TLS and proxies to Ergo's loopback
|
||||
# WebSocket listener, so web clients hit wss://${DOMAIN}/irc and agents get a
|
||||
# WebSocket transport without exposing another public port. (No-op if IRC=0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue