https://github.com/jokull/samstodin-subs.git
The local stack expects a Cloudflare tunnel with ingress rules likes this:
tunnel: <UUID>
credentials-file: /Users/jokull/.cloudflared/<UUID>.json
ingress:
- hostname: samstodin-subs.solberg.is
service: http://localhost:3800
- service: http_status:404
bun install
bun run tunnel
bun run dev # in another tab
Template .env.local
EXTERNAL_HOST="samstodin-subs.solberg.is"
SESSION_SECRET=
DATABASE_URL=libsql://samstodin-subs-jokull.turso.io
DATABASE_AUTH_TOKEN=
ASKELL_PUBLIC=
ASKELL_PRIVATE=
ASKELL_WEBHOOKS_HMAC_SECRET=
SAMSTODIN_EMAIL_ADDRESS="askrift@samstodin.is"
SAMSTODIN_EMAIL_PASSWORD=
Initialize the production db
# signup with turso, install the turso cli
turso db create samstodin-subs --from-dump seed.sql
turso db show --url samstodin-subs # for the prod `DATABASE_URL` value
turso tokens create samstodin-subs # for the prod `DATABASE_AUTH_TOKEN` value