# =================================
# 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
