feat(web): publish a public status page at /status
Checking whether the service is up required an account, so the answer lived where the people asking could not reach it. The page is rendered on the server with no script at all and refreshes through a meta tag: a status page that needs a working browser is useless at the moment it is read. Two rules follow from it being public. A repository the forge does not list as public keeps its environment visible but loses its name, and the banner always states the worst true thing — a failed deployment forbids the green headline even while the bot answers. WEB_PUBLIC_STATUS=false removes page and route together. /api/status gives the same in JSON, which is what a monitor should watch rather than /api/health — the latter only says the process is alive. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
9acb523510
commit
a1e1de7734
11 files changed
+823
No files matched your search
@@ -499,6 +499,15 @@ export const VARIABLES = Object.freeze([
|
||||
generator: 'hex16',
|
||||
advanced: true,
|
||||
},
|
||||
{
|
||||
key: 'WEB_PUBLIC_STATUS',
|
||||
section: 'web',
|
||||
label: 'Page de statut publique',
|
||||
help: 'Publie `/status` : bot en ligne, dernier déploiement par environnement, dernières releases. Les dépôts privés n’y apparaissent jamais par leur nom.',
|
||||
type: 'bool',
|
||||
default: 'true',
|
||||
restartRequired: true,
|
||||
},
|
||||
{
|
||||
key: 'WEB_ALLOW_COMMAND_DEPLOYS',
|
||||
section: 'web',
|
||||
|
||||
Reference in new issue
Block a user