Rename to Cross Events Hub; add logo and favicon
Hope Events is now Cross Events. Protocol identifiers (hel1. tokens, CEH- keys) are unchanged so existing installs keep working. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
# Hope Events Hub
|
||||
# Cross Events Hub
|
||||
|
||||
Joshua's central management app for every **Hope Events** install: customers, licences,
|
||||
Joshua's central management app for every **Cross Events** install: customers, licences,
|
||||
install health and usage, and alerts. Customers never log in here.
|
||||
|
||||
> **Naming:** Cross Events was called **Hope Events** until October 2026. Older commits, the
|
||||
> `hope-events` repo name and the `hel1.` licence-token prefix still use the old name. The
|
||||
> prefix is part of the protocol, so it stays.
|
||||
|
||||
- `backend/` — Express + Prisma (Postgres) API, port 5200
|
||||
- `frontend/` — Next.js dashboard, port 3200
|
||||
- `docs/hub-protocol.md` — the contract with Hope Events installs (a copy lives in the
|
||||
- `docs/hub-protocol.md` — the contract with Cross Events installs (a copy lives in the
|
||||
`hope-events` repo; change both together)
|
||||
|
||||
Installs only ever call the Hub (register, heartbeat); the Hub never reaches into an install
|
||||
@@ -32,25 +36,25 @@ npm run dev # http://localhost:3200
|
||||
|
||||
The first login sets up two-factor with an authenticator app (required).
|
||||
|
||||
To try it with Hope Events locally, point the install at the Hub with `HUB_URL=http://localhost:5200`
|
||||
and `HUB_PUBLIC_KEY` (the public key shown in Hub → Settings) in Hope Events' `backend/.env`.
|
||||
To try it with Cross Events locally, point the install at the Hub with `HUB_URL=http://localhost:5200`
|
||||
and `HUB_PUBLIC_KEY` (the public key shown in Hub → Settings) in Cross Events' `backend/.env`.
|
||||
|
||||
## The licence signing key
|
||||
|
||||
Licences are tokens signed with an Ed25519 key. **The private key exists only on the Hub server**;
|
||||
installs check licences with the public key, which is built into Hope Events
|
||||
installs check licences with the public key, which is built into Cross Events
|
||||
(`backend/src/hub/publicKey.js`).
|
||||
|
||||
- Create the production key once, on the Hub server: `npm run generate-keys`. Back up
|
||||
`keys/hub-signing-key.pem` somewhere safe and offline.
|
||||
- Put the public key it prints into Hope Events (`backend/src/hub/publicKey.js`) and release.
|
||||
- Losing or replacing the key means every install needs a Hope Events update with the new
|
||||
- Put the public key it prints into Cross Events (`backend/src/hub/publicKey.js`) and release.
|
||||
- Losing or replacing the key means every install needs a Cross Events update with the new
|
||||
public key before it can trust new licences — so don't.
|
||||
- `HUB_ENCRYPTION_KEY` encrypts install secrets: it must never change after installs register.
|
||||
|
||||
## Deploying
|
||||
|
||||
Same pattern as Hope Events: on the server (`events-hub.crosscode.co.za`), behind nginx with
|
||||
Same pattern as Cross Events: on the server (`events-hub.crosscode.co.za`), behind nginx with
|
||||
HTTPS, two PM2 processes (`backend`: `npm start`; `frontend`: `npm run build && npm start`),
|
||||
`TRUST_PROXY=1`, `FRONTEND_URL=https://events-hub.crosscode.co.za`, and the frontend's
|
||||
`NEXT_PUBLIC_API_URL` set to the public API address (e.g. `https://events-hub.crosscode.co.za`
|
||||
|
||||
Reference in New Issue
Block a user