mirror of
https://github.com/thecyberlearn/quantumtaskai-caprover.git
synced 2026-08-18 08:32:56 +00:00
- Replace hardcoded values in dokploy.json with environment variable substitution - Make production settings more environment-aware with better defaults - Add debug logging to help troubleshoot configuration issues - Update .env.example with Dokploy-specific configuration - Add deploy-dokploy.sh helper script for easy environment setup - Improve ALLOWED_HOSTS and CSRF_TRUSTED_ORIGINS handling with fallbacks This makes the deployment more flexible and follows 12-factor app principles.
60 lines
2.4 KiB
Plaintext
60 lines
2.4 KiB
Plaintext
# Django Configuration
|
|
SECRET_KEY=your-secret-key-here-generate-50-random-characters
|
|
DEBUG=false
|
|
DOMAIN=your-domain.com
|
|
ALLOWED_HOSTS=your-domain.com,*
|
|
CSRF_TRUSTED_ORIGINS=https://your-domain.com,http://your-domain.com
|
|
|
|
# Security Settings (for Dokploy)
|
|
SECURE_SSL_REDIRECT=false
|
|
SECURE_PROXY_SSL_HEADER=HTTP_X_FORWARDED_PROTO,https
|
|
|
|
# Email Verification
|
|
# Set to False to bypass email verification for testing (until final domain is ready)
|
|
REQUIRE_EMAIL_VERIFICATION=True
|
|
|
|
# Database Configuration
|
|
# Default: SQLite (simple, reliable, no setup required)
|
|
# Railway: Automatically uses PostgreSQL via DATABASE_URL
|
|
|
|
# To use PostgreSQL locally (optional - for production parity):
|
|
# 1. Set up PostgreSQL (see docs/POSTGRESQL_SETUP.md)
|
|
# 2. Uncomment one of these options:
|
|
|
|
# Option 1: Use DATABASE_URL (explicit)
|
|
DATABASE_URL=postgresql://user:password@host:port/database
|
|
|
|
# Option 2: Use PostgreSQL flag (uses default credentials)
|
|
# USE_POSTGRESQL=True
|
|
|
|
# Option 3: Force SQLite (override auto-detection)
|
|
# DATABASE_URL=sqlite:///db.sqlite3
|
|
|
|
# External API Keys
|
|
NEXT_PUBLIC_OPENWEATHER_API_KEY=your_openweather_api_key_here
|
|
OPENWEATHER_API_KEY=your_openweather_api_key_here
|
|
|
|
# Stripe Configuration
|
|
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_your_stripe_publishable_key_here
|
|
STRIPE_SECRET_KEY=sk_test_your_stripe_secret_key_here
|
|
STRIPE_WEBHOOK_SECRET=whsec_your_stripe_webhook_secret_here
|
|
|
|
# N8N Webhook URLs (Frontend)
|
|
NEXT_PUBLIC_N8N_WEBHOOK_DATA_ANALYZER=https://your-n8n-instance.com/webhook/data-analyzer
|
|
NEXT_PUBLIC_N8N_WEBHOOK_FIVE_WHYS=https://your-n8n-instance.com/webhook/five-whys
|
|
NEXT_PUBLIC_N8N_WEBHOOK_JOB_POSTING=https://your-n8n-instance.com/webhook/job-posting
|
|
NEXT_PUBLIC_N8N_WEBHOOK_SOCIAL_ADS=https://your-n8n-instance.com/webhook/social-ads
|
|
NEXT_PUBLIC_N8N_WEBHOOK_FAQ_GENERATOR=https://your-n8n-instance.com/webhook/faq-generator
|
|
|
|
# Django N8N Webhook URLs (Backend)
|
|
N8N_WEBHOOK_DATA_ANALYZER=https://your-n8n-instance.com/webhook/data-analyzer
|
|
N8N_WEBHOOK_FIVE_WHYS=https://your-n8n-instance.com/webhook/five-whys
|
|
N8N_WEBHOOK_JOB_POSTING=https://your-n8n-instance.com/webhook/job-posting
|
|
N8N_WEBHOOK_SOCIAL_ADS=https://your-n8n-instance.com/webhook/social-ads
|
|
N8N_WEBHOOK_FAQ_GENERATOR=https://your-n8n-instance.com/webhook/faq-generator
|
|
|
|
# Security
|
|
CSRF_TRUSTED_ORIGINS=https://your-domain.com,https://www.your-domain.com
|
|
|
|
# Redis Cache (optional - falls back to memory cache if not available)
|
|
REDIS_URL=redis://127.0.0.1:6379/1 |