Add podman compose deployment, dev script and docs

Containerfile + compose (app + Caddy with automatic HTTPS), env-driven
domain/limits/ports, VAPID key generation that never prints the key.
SPEC updated to match the implementation (Node stdlib server, Svelte SPA,
revert by event id, backup contents, push options).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FYo6JSV1fDU1fm3LU77iF
This commit is contained in:
agent 2026-10-09 19:59:17 +00:00
parent a78d855886
commit 8c4e37ce4b
9 changed files with 365 additions and 42 deletions

23
deploy/.env.example Normal file
View file

@ -0,0 +1,23 @@
# Copy to deploy/.env and `chmod 600 deploy/.env`. Never commit .env.
# Required: public hostname, with a DNS A/AAAA record pointing at this server.
DOMAIN=oweme.example.com
# Web Push. Generate the keys with:
# podman run --rm --user root -v ./:/out:Z localhost/oweme:latest node server/gen-vapid.ts /out/.env
# (or, with Node 24 installed: node apps/server/src/gen-vapid.ts deploy/.env)
# Leave empty to disable notifications.
VAPID_SUBJECT=mailto:you@example.com
VAPID_PUBLIC_KEY=
VAPID_PRIVATE_KEY=
# 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.
#BIND_ADDR=0.0.0.0
#HTTP_PORT=80
#HTTPS_PORT=443