Make the deploy panel-friendly: zero-config compose, env vars with defaults
- compose.yaml runs only the app by default; Caddy moved to the
'standalone' profile (the panel brings its own Caddy and routes).
- No env_file: every setting is ${VAR:-default} in compose.yaml, so it
can be set from the panel's Environment tab (or .env standalone).
- VAPID keys are generated on first start and kept in the data volume;
the push subject defaults to https://<site domain>. gen-vapid.ts removed.
- PUSH_DISABLED=1 turns push off.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FYo6JSV1fDU1fm3LU77iF
This commit is contained in:
parent
1382e53359
commit
04d952872d
11 changed files with 191 additions and 152 deletions
|
|
@ -13,7 +13,9 @@ End-to-end encrypted group expense splitter (a Settle Up clone). Read
|
|||
that way unless there's a strong reason.
|
||||
- `apps/web/` — Svelte 5 SPA + service worker (`src/sw.ts`, built separately
|
||||
by `vite.sw.config.ts` as a classic script).
|
||||
- `compose.yaml` + `.env.example` (repo root) — the podman compose deployment.
|
||||
- `compose.yaml` (repo root) — the deployment; the panel needs it at the root.
|
||||
Settings are `${VAR:-default}` there; push keys are generated into the volume.
|
||||
Caddy is only in the `standalone` profile (the panel brings its own).
|
||||
- `deploy/` — Containerfile, Caddyfile, deploy docs.
|
||||
- `e2e/` — Playwright tests against the production build.
|
||||
|
||||
|
|
@ -57,4 +59,4 @@ notifications.
|
|||
Push payloads carry only the group id.
|
||||
7. Strict CSP: no inline scripts, no third-party origins.
|
||||
8. Containers: rootless Podman; for local testing publish to `127.0.0.1` only
|
||||
(`BIND_ADDR=127.0.0.1` in `.env`).
|
||||
(`BIND_ADDR=127.0.0.1` in `.env` for the standalone profile).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue