Demo content from demo/admin-guide (26b258d)

This commit is contained in:
f451-admin 2026-09-30 10:03:50 +02:00
parent fa4da1c448
commit 3fd7bd87cb

View file

@ -25,9 +25,8 @@ target picture; [[configuration-reference]] lists every variable.
``` ```
Internet ──443──▶ reverse proxy (TLS) Internet ──443──▶ reverse proxy (TLS)
├─ wiki.example.org → web :3000 (app; proxies /api /auth /admin /media /drawio /mcp) ├─ wiki.example.org → web :3000 (app; proxies /api /auth /admin /media /webhooks /drawio /mcp)
├─ wiki.example.org/webhooks/* → api :3001 (only for webhooks from GitHub or another host) └─ git.example.org → Forgejo :3000 (only if Forgejo hosts the spaces)
└─ git.example.org → Forgejo :3000 (only if Forgejo hosts the spaces)
internal network: web · api · mcp · drawio · postgres · forgejo internal network: web · api · mcp · drawio · postgres · forgejo
``` ```
@ -68,8 +67,9 @@ elsewhere and this server only runs the app.
- One name for the app, e.g. `wiki.example.org`; one for Forgejo if it runs - One name for the app, e.g. `wiki.example.org`; one for Forgejo if it runs
here, e.g. `git.example.org`. here, e.g. `git.example.org`.
- The reverse proxy terminates TLS (Let's Encrypt) and forwards to `web:3000` - The reverse proxy terminates TLS (Let's Encrypt) and forwards to `web:3000`
and `forgejo:3000`. `web` itself proxies `/api`, `/auth`, `/media`, `/drawio` and `forgejo:3000`. `web` itself proxies `/api`, `/auth`, `/admin`, `/media`,
and `/mcp` to the internal services — the proxy needs only these two routes. `/webhooks`, `/drawio` and `/mcp` to the internal services — the proxy needs
only these two routes.
- `F451_PUBLIC_BASE_URL=https://wiki.example.org`. - `F451_PUBLIC_BASE_URL=https://wiki.example.org`.
- **Never** set `F451_INSECURE_COOKIES` or `F451_OIDC_ALLOW_INSECURE` in - **Never** set `F451_INSECURE_COOKIES` or `F451_OIDC_ALLOW_INSECURE` in
production — they exist for local HTTP only. production — they exist for local HTTP only.
@ -115,14 +115,9 @@ curl -X POST -H "Authorization: Bearer $F451_ADMIN_TOKEN" \
``` ```
Then set up webhooks in each space repository, so changes made directly in Git Then set up webhooks in each space repository, so changes made directly in Git
show up at once. The API receives them at `/webhooks/forgejo` and show up at once: `https://wiki.example.org/webhooks/forgejo` or
`/webhooks/github`; `web` does **not** forward these paths. `https://wiki.example.org/webhooks/github` (content type JSON, push and pull
request events).
- **Forgejo on the same Docker network:** target `http://api:3001/webhooks/forgejo`.
Forgejo refuses private targets by default — allow it with
`FORGEJO__webhook__ALLOWED_HOST_LIST=api` (or `private`).
- **GitHub or a Forgejo elsewhere:** let the reverse proxy route
`https://wiki.example.org/webhooks/*` to `api:3001` and use that URL.
Use the secret from `F451_WEBHOOK_SECRET_FORGEJO` / `F451_WEBHOOK_SECRET_GITHUB` Use the secret from `F451_WEBHOOK_SECRET_FORGEJO` / `F451_WEBHOOK_SECRET_GITHUB`
as the webhook secret. Without webhooks the drift job catches up every five as the webhook secret. Without webhooks the drift job catches up every five