backend/.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow. (showing first 20, more exist in backend/.env.example)
DJANGO_SECRET_KEY
secret
Django settings
DJANGO_DEBUG
DJANGO_PORT
DJANGO_ALLOWED_HOSTS
DJANGO_CORS_ALLOWED_ORIGINS
DATABASE_URL
secret
Database
DJANGO_DB_CONN_MAX_AGE
RATE_LIMIT_FACTOIDS_ANON_PER_MINUTE
Rate limiting / cost guard defaults (example values)
RATE_LIMIT_FACTOIDS_ANON_PER_HOUR
RATE_LIMIT_FACTOIDS_ANON_PER_DAY
OPENROUTER_API_KEY
secret
Third-party integrations
OPENROUTER_BASE_URL
TAVILY_API_KEY
secret
FACTOID_CHAT_RATE_LIMIT_PER_MINUTE
FACTOID_AGENT_DEFAULT_MODEL
STRIPE_SECRET_KEY
secret
STRIPE_PUBLISHABLE_KEY
secret
STRIPE_FACTOID_CHAT_PRICE_ID
secret
Optional overrides (defaults to price_1SAYzlDuK9b9aydCEXpAkQpt managed in Stripe) STRIPE_PRICE_ID=price_1SAYzlDuK9b9aydCEXpAkQpt…
STRIPE_FACTOID_CHAT_AMOUNT_CENTS
secret
STRIPE_FACTOID_CHAT_CURRENCY
secret
brew install flyctl && fly launch --from https://github.com/andrewm4894/andys-daily-factoids
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/andrewm4894/andys-daily-factoids
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/andrewm4894/andys-daily-factoids