Phase 9, part 1: editions and their settings
SUPERMARKET_MODE picks local (the default), server or multi. internal/config reads and checks every setting the editions need (database, secret key, storage, the app's own mail, an https address), reporting all problems at once. supermarket config prints them without passwords; supermarket secret-key makes a key. Settings -> About shows the edition. Server and multi-tenant are checked but refuse to start until they're built. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1867,6 +1867,17 @@ done as the owner.
|
||||
|
||||
#### Phase 9: Groundwork: editions, Postgres, secrets and files
|
||||
|
||||
**Part 1 built 2026-11-25** on branch `phase9`. A new `internal/config`
|
||||
package reads and checks every setting, listing all the problems at once.
|
||||
`supermarket config` prints the settings (never a password or the key)
|
||||
and any problems; `supermarket secret-key` makes a key. Settings → About
|
||||
shows the edition. Server and multi-tenant settings are checked, but
|
||||
starting either one says it isn't built yet, until the parts that make
|
||||
them work are done. S3 storage takes `SUPERMARKET_S3_ENDPOINT`,
|
||||
`_REGION` (default `garage`), `_ACCESS_KEY` and `_SECRET_KEY`; the app's
|
||||
mail takes `SUPERMARKET_MAIL_URL` (`smtp://` with STARTTLS, or
|
||||
`smtps://`) and `SUPERMARKET_MAIL_FROM`.
|
||||
|
||||
Nothing changes for the local user; this makes the rest possible. A
|
||||
commit after each part; the whole test suite runs against both SQLite and
|
||||
Postgres from part 2 on.
|
||||
|
||||
Reference in New Issue
Block a user