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
29
.env.example
29
.env.example
|
|
@ -1,24 +1,19 @@
|
|||
# Copy to .env (repo root, next to compose.yaml) and `chmod 600 .env`.
|
||||
# Never commit .env.
|
||||
# Optional settings for a standalone deploy (podman compose without the
|
||||
# panel). Copy to .env next to compose.yaml and `chmod 600 .env`. Never
|
||||
# commit .env. With the panel, set these in the app's Environment tab instead.
|
||||
# Everything has a working default; see compose.yaml for what each one does.
|
||||
|
||||
# Required: public hostname, with a DNS A/AAAA record pointing at this server.
|
||||
# Standalone HTTPS: public hostname with a DNS record pointing here.
|
||||
DOMAIN=oweme.example.com
|
||||
|
||||
# Web Push. Generate the keys with:
|
||||
# podman run --rm --user root -v ./.env:/out/.env:Z localhost/oweme:latest node server/gen-vapid.ts /out/.env
|
||||
# (or, with Node 24 installed: node apps/server/src/gen-vapid.ts .env)
|
||||
# Leave empty to disable notifications.
|
||||
VAPID_SUBJECT=mailto:you@example.com
|
||||
VAPID_PUBLIC_KEY=
|
||||
VAPID_PRIVATE_KEY=
|
||||
#VAPID_SUBJECT=mailto:you@example.com
|
||||
#MAX_PHOTO_BYTES=2097152
|
||||
#MAX_EVENT_BYTES=65536
|
||||
#MAX_GROUP_BYTES=209715200
|
||||
#GROUP_CREATE_PER_HOUR=10
|
||||
#PUSH_DISABLED=0
|
||||
|
||||
# Limits (bytes). Defaults shown.
|
||||
MAX_PHOTO_BYTES=2097152
|
||||
MAX_EVENT_BYTES=65536
|
||||
MAX_GROUP_BYTES=209715200
|
||||
GROUP_CREATE_PER_HOUR=10
|
||||
|
||||
# Where Caddy listens. Defaults: all interfaces, ports 80/443.
|
||||
# Where the standalone Caddy listens. Defaults: all interfaces, ports 80/443.
|
||||
#BIND_ADDR=0.0.0.0
|
||||
#HTTP_PORT=80
|
||||
#HTTPS_PORT=443
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue