pounce/backend/env.example
yves.gugger 5296981473
Some checks failed
CI / Frontend Lint & Type Check (push) Has been cancelled
CI / Frontend Build (push) Has been cancelled
CI / Backend Lint (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
Deploy / Build & Push Images (push) Has been cancelled
Deploy / Deploy to Server (push) Has been cancelled
Deploy / Notify (push) Has been cancelled
docs: Add OAuth config to env.example
2025-12-09 16:58:09 +01:00

118 lines
3.5 KiB
Plaintext

# =================================
# pounce Backend Configuration
# =================================
# Copy this file to .env and update values
# =================================
# Database
# =================================
# SQLite (Development)
DATABASE_URL=sqlite+aiosqlite:///./domainwatch.db
# PostgreSQL (Production)
# DATABASE_URL=postgresql+asyncpg://user:password@localhost:5432/pounce
# =================================
# Security
# =================================
# IMPORTANT: Generate a secure random key for production!
# Use: python -c "import secrets; print(secrets.token_hex(32))"
SECRET_KEY=your-super-secret-key-change-this-in-production-min-32-characters
# JWT Settings
ACCESS_TOKEN_EXPIRE_MINUTES=10080
# CORS Origins (comma-separated)
ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
# Email Verification (set to "true" to require email verification before login)
REQUIRE_EMAIL_VERIFICATION=false
# =================================
# Stripe Payments
# =================================
# Get these from https://dashboard.stripe.com/apikeys
STRIPE_SECRET_KEY=sk_test_your_stripe_secret_key
STRIPE_WEBHOOK_SECRET=whsec_your_webhook_secret
# Price IDs from Stripe Dashboard (Products > Prices)
# Create products "Trader" and "Tycoon" in Stripe, then get their Price IDs
STRIPE_PRICE_TRADER=price_xxxxxxxxxxxxxx
STRIPE_PRICE_TYCOON=price_xxxxxxxxxxxxxx
# =================================
# SMTP Email Configuration (Zoho)
# =================================
# Zoho Mail (recommended):
# SMTP_HOST=smtp.zoho.eu
# SMTP_PORT=465
# SMTP_USE_SSL=true
# SMTP_USE_TLS=false
#
# Gmail Example (port 587, STARTTLS):
# SMTP_HOST=smtp.gmail.com
# SMTP_PORT=587
# SMTP_USE_SSL=false
# SMTP_USE_TLS=true
# SMTP_USER=your-email@gmail.com
# SMTP_PASSWORD=your-app-password
# Zoho Configuration (Default)
SMTP_HOST=smtp.zoho.eu
SMTP_PORT=465
SMTP_USER=hello@pounce.ch
SMTP_PASSWORD=your-zoho-app-password
SMTP_FROM_EMAIL=hello@pounce.ch
SMTP_FROM_NAME=pounce
SMTP_USE_TLS=false
SMTP_USE_SSL=true
# Email for contact form submissions
CONTACT_EMAIL=hello@pounce.ch
# =================================
# Scheduler Settings
# =================================
# Domain availability check interval (hours)
SCHEDULER_CHECK_INTERVAL_HOURS=24
# TLD price scraping interval (hours)
SCHEDULER_TLD_SCRAPE_INTERVAL_HOURS=24
# Auction scraping interval (hours)
SCHEDULER_AUCTION_SCRAPE_INTERVAL_HOURS=1
# =================================
# Application Settings
# =================================
# Environment: development, staging, production
ENVIRONMENT=development
# Debug mode (disable in production!)
DEBUG=true
# Site URL (for email links, password reset, etc.)
SITE_URL=http://localhost:3000
# =================================
# OAuth (Optional)
# =================================
# Google OAuth (https://console.cloud.google.com/apis/credentials)
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
GOOGLE_REDIRECT_URI=https://yourdomain.com/api/v1/oauth/google/callback
# GitHub OAuth (https://github.com/settings/developers)
GITHUB_CLIENT_ID=your-github-client-id
GITHUB_CLIENT_SECRET=your-github-client-secret
GITHUB_REDIRECT_URI=https://yourdomain.com/api/v1/oauth/github/callback
# =================================
# Rate Limiting
# =================================
# Default rate limit (requests per minute per IP)
# Rate limits are enforced in API endpoints
# Contact form: 5/hour
# Auth (login/register): 10/minute
# General API: 200/minute