Files
2026-08-22 19:49:46 +01:00

32 lines
1.3 KiB
Bash

# Runtime env for the SvelteKit app.
#
# The app's own loopback URL (PB_ENDPOINT) is computed in code; only these are
# real env vars:
# PB superuser (server-side only). Defaults in code: debug@famchamp.dev / debug123.
PB_EMAIL=
PB_PASSWORD=
# Server-only secret used to derive a child member's PB password from
# (famSlug + username). Never expose client-side. OTP is the access gate.
MEMBER_SECRET=
# Public: the dev machine's IP where PB runs. Change this when your remote IP
# changes — the browser (pocketbase.ts) and server-side reads use it.
# Prod ignores this (uses /pb via nginx). Default: 192.168.1.225.
SERVER_IP=192.168.1.225
# docker-compose (staging) — host-side deploy config, never baked into the image.
PORT=3001 # public port to publish (nginx container listens on 3001)
PB_DATA=./pb_data # where to persist PocketBase data on the host
# Stripe subscriptions (server-only). Leave blank for dummy/simulated checkout.
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=
# Price IDs for the monthly/yearly tiers (from the Stripe Dashboard).
STRIPE_PRICE_MONTHLY=
STRIPE_PRICE_YEARLY=
# Client-side publishable key (used by Checkout redirect in the browser).
PUBLIC_STRIPE_PUBLISHABLE_KEY=
STRIPE_PRICE_TRIAL=
# Dev-only: gate for /api/webhooks/stripe/simulate. Leave unset in prod.