Run your first discussion
Start Blua locally with Docker and SQLite, then attach a comment thread to an article.
Prepare the instance
Work in a checkout of the Blua repository with Docker Compose and OpenSSL available. If an operator has already set up your instance, go straight to the embedding guide.
Shellcp .env.example .envchmod 600 .env
Fill in these values in the new .env file.
| Setting | Local value |
|---|---|
PUBLIC_ORIGIN |
http://localhost:8080 |
CURSOR_SECRET, BETTER_AUTH_SECRET |
Run openssl rand -hex 32 separately for each secret. |
ADMIN_USER_ID |
Generate a UUID with uuidgen and keep it across upgrades. |
BACKUP_KEY |
Run openssl rand -base64 32 and keep a separate copy for recovery. |
Shelldocker compose up --build -ddocker compose ps
Provision the owner
Export ACCOUNT_EMAIL and ACCOUNT_PASSWORD into the current shell from a password manager or a secure prompt. Use a password of at least 12 characters. Run this once to create the owner.
Shelldocker compose exec -T -e ACCOUNT_EMAIL -e ACCOUNT_PASSWORD blua \ node --import tsx apps/private/src/provision.ts --ownerunset ACCOUNT_PASSWORD
Open http://localhost:8080/account, sign in and choose Open admin.
Connect an article
- In Settings → Sites, add a site such as
garden. Allow the article’s exact origin, for examplehttp://localhost:3000. Match its scheme, hostname and port. - Open Components, select the site and enter a permanent page key such as
spring-swallows. - Open Embed code and paste the HTML below the article. Load it from the registered origin and post a comment with a nickname.
- Reload to check that the comment persists. With manual review enabled, publish it in Comments, then open the article in a second browser.
For a public installation, switch from loopback to an HTTPS gateway. Hosting and storage covers the reverse proxy, PostgreSQL and Workers setups.