pounce/backend/env.example
yves.gugger 225d720e8a
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
feat: Configure all email services to use Zoho Mail
Email Service (email_service.py):
- Updated SMTP defaults for Zoho (smtp.zoho.eu:465)
- Added SSL support (use_ssl parameter) for port 465
- Updated send_email() to handle both SSL (port 465) and STARTTLS (port 587)
- Changed default sender from noreply@pounce.ch to hello@pounce.ch
- Updated contact email to hello@pounce.ch

Configuration Files:
- env.example: Complete Zoho configuration with SSL
- env.example.txt: Updated with Zoho defaults
- README.md: Updated email setup documentation with Zoho instructions

Zoho Configuration:
- Host: smtp.zoho.eu
- Port: 465 (SSL)
- SSL: true, TLS: false
- Sender: hello@pounce.ch

Supported Email Types:
- Domain availability alerts
- Price change notifications
- Subscription confirmations
- Password reset
- Email verification
- Contact form (send + confirmation)
- Newsletter welcome
- Weekly digests
2025-12-08 15:41:05 +01:00

105 lines
2.9 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
# =================================
# 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