setup_paddle.py creates a notification destination in Paddle and writes the webhook secret + setting ID to .env. dev_run.sh resets the DB, seeds data, and starts an ngrok tunnel to update the webhook URL automatically for end-to-end checkout testing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
48 lines
1.5 KiB
Plaintext
48 lines
1.5 KiB
Plaintext
# App
|
|
APP_NAME=Padelnomics
|
|
SECRET_KEY=change-me-generate-a-real-secret
|
|
BASE_URL=http://localhost:5000
|
|
DEBUG=true
|
|
ADMIN_PASSWORD=admin
|
|
|
|
# Database
|
|
DATABASE_PATH=data/app.db
|
|
|
|
# Auth
|
|
MAGIC_LINK_EXPIRY_MINUTES=15
|
|
SESSION_LIFETIME_DAYS=30
|
|
|
|
# Email (Resend)
|
|
# Leave blank for dev — emails print to console (no Resend account needed).
|
|
#
|
|
# Resend test addresses (work with any valid API key, no verified domain needed):
|
|
# delivered@resend.dev — accepted, simulates successful delivery
|
|
# bounced@resend.dev — simulates a hard bounce
|
|
# complained@resend.dev — simulates a spam complaint
|
|
# suppressed@resend.dev — simulates a suppressed recipient
|
|
# These support +label syntax: delivered+test1@resend.dev
|
|
# You can also send FROM onboarding@resend.dev without a verified domain.
|
|
#
|
|
# Dev login shortcut (no email needed): /auth/dev-login?email=dev@localhost
|
|
RESEND_API_KEY=
|
|
EMAIL_FROM=hello@padelnomics.io
|
|
ADMIN_EMAIL=leads@padelnomics.io
|
|
|
|
# Paddle — leave blank to skip checkout (overlay won't initialize)
|
|
# Run `uv run python -m padelnomics.scripts.setup_paddle` to create products
|
|
# and a webhook notification destination. It writes PADDLE_WEBHOOK_SECRET and
|
|
# PADDLE_NOTIFICATION_SETTING_ID here automatically.
|
|
PADDLE_API_KEY=
|
|
PADDLE_CLIENT_TOKEN=
|
|
PADDLE_WEBHOOK_SECRET=
|
|
PADDLE_NOTIFICATION_SETTING_ID=
|
|
PADDLE_ENVIRONMENT=sandbox
|
|
|
|
# Umami — leave blank for dev (analytics tracking disabled)
|
|
UMAMI_API_URL=https://umami.padelnomics.io
|
|
UMAMI_API_TOKEN=
|
|
|
|
# Rate limiting
|
|
RATE_LIMIT_REQUESTS=100
|
|
RATE_LIMIT_WINDOW=60
|