Document all installation paths in README and RUNNING
release gate / check (push) Failing after 6m22s

The repo now ships three install shapes but only two were discoverable:

- README 'Run the whole app' opens with the choice of three installs
  (self-hosted Compose / standalone server via scripts/deploy.sh /
  federated core suite) and a TIER explainer (unset = both auth paths,
  multi = hosted self-service, core = Authelia-only) pointing at
  AUTHELIA.md section 7.
- New README section 'Installing into a federated core suite': the
  two-command install via deploy/federated/install.sh, what the installer
  does (preflights incl. required Authelia and the claims policy, IP
  collision handling with SUPERBRAIN_*_IP overrides, house integration
  files, installapp flow, password-less admin seed and first-login
  linking), prerequisites, and the override env vars — with STRATEGY.md
  as the design record.
- RUNNING.md 'Running on a remote server' now redirects federated hosts
  to the suite installer instead of hand-rolling nginx/TLS.

No functional changes.
This commit is contained in:
Andrew S Erwin
2026-10-26 23:43:25 -05:00
parent 2fa3979451
commit 2f89719f0a
2 changed files with 66 additions and 0 deletions
+61
View File
@@ -10,6 +10,26 @@ saved views, pages, previews, sharing, contacts and email signals.
first login, everyday commands, updates, and troubleshooting on Windows,
macOS, and Linux.
Superbrain installs three ways — pick the one that matches your target:
1. **Self-hosted with Docker Compose** (this section): one command on any
Docker host. Default shape: email/password signup and login, optional
Authelia, optional SMTP-backed password reset.
2. **Standalone remote server** — `scripts/deploy.sh` provisions a target
machine end to end (nginx + Let's Encrypt + database backups). See
[Deploying to a server](#deploying-to-a-server) below.
3. **Federated "core" suite host** — a one-shot suite installer for
operators running their own federated core (traefik, Authelia, shared
postgres, pdns, superpanel). See
[Installing into a federated core suite](#installing-into-a-federated-core-suite)
below.
The `TIER` environment variable selects the product shape and derives the
auth defaults (explicit `AUTH_MODE`/`SIGNUP_ENABLED` override): unset =
both password login and Authelia; `TIER=multi` = hosted self-service
(signup, password login, self-reset); `TIER=core` = Authelia SSO only.
Details: [web/docs/AUTHELIA.md](web/docs/AUTHELIA.md) §7.
Requires Docker with Compose v2 or newer. On a new installation:
```bash
@@ -302,6 +322,47 @@ installs the nginx + Let's Encrypt reverse proxy from
revision or restoring a pre-deploy dump; migrations are additive. See
RUNNING.md → "Running on a remote server" for the operator checklist.
## Installing into a federated core suite
For operators running their own copy of the federated suite (traefik +
Authelia + shared postgres + pdns + superpanel), Superbrain is a
first-class suite app. On the **core host**, as root:
```bash
git clone https://gitea.federated.computer/Federated_Computer/brain.git /tmp/superbrain-repo
sudo bash /tmp/superbrain-repo/deploy/federated/install.sh
```
(Use whichever repository location you were given access to; the installer
re-clones it onto the host by default — override with `SUPERBRAIN_REPO`,
`SUPERBRAIN_REF`, or stage a local tree with `SUPERBRAIN_SRC`.)
The installer:
1. **Preflights the suite** — Authelia is *required* (the core tier is
SSO-only: password login, signup and reset are disabled at the API),
plus the house mail relay credential for notification emails, the
`core` docker network, and fixed-IP availability (override with
`SUPERBRAIN_{WEB,APP,MIGRATE}_IP` on collision).
2. **Installs the house integration** — `/federated/lib/superbrain.sh` and
`/federated/services/superbrain/service`, then runs the standard
`/federated/bin/installapp superbrain`: compose + `.env` generation
(`TIER=core`), image builds from the staged source (interim mode until
CI publishes registry images), database + user on the shared postgres,
pdns record, monitors, superpanel catalog entry.
3. **Registers the Authelia OIDC client** — including the `claims_policy`
that puts `email` in the ID token (without it every SSO login fails
with AccessDenied), validated before Authelia is restarted.
4. **Seeds and verifies** — a password-less `admin@$DOMAIN` account
(ADMIN via `ADMIN_EMAILS`; it links to your Authelia identity by
verified email on first SSO login), then container/DNS/SSO/HTTPS
checks and the operator's first-login instructions.
Prerequisites: Authelia with the OIDC provider configured, shared
`postgresql`, traefik, pdns, and the house `mail` relay (shared `fcore`
sender account). Full design record, IP plan, upgrade flow and incident
history: [deploy/federated/STRATEGY.md](deploy/federated/STRATEGY.md).
## Client test build
Use [RUNNING.md](RUNNING.md) for the client handoff. Test login, bookmark editing,
+5
View File
@@ -337,6 +337,11 @@ HTTPS reverse proxy to the web app on port 3000, set `NEXTAUTH_URL` to your
public HTTPS URL, and set `COOKIE_SECURE=1`. The database remains internal to
Docker.
If the target is a **federated suite host** (traefik + Authelia + shared
postgres), do not hand-roll any of this: use the suite installer
(`deploy/federated/install.sh`, run as root on the core host) — see README →
"Installing into a federated core suite".
### Rate-limit identity behind a proxy
Set `TRUSTED_PROXY=1` in `.env` when (and only when) the proxy in front of the