Multitenant implementation with custom Domain, theme per vendor

This commit is contained in:
2025-10-26 20:05:02 +01:00
parent 091067a729
commit c88775134d
27 changed files with 3267 additions and 838 deletions

View File

@@ -1,12 +1,27 @@
# .env.example
# Project information
PROJECT_NAME=Ecommerce Backend API with Marketplace Support
DESCRIPTION=Advanced product management system with JWT authentication
VERSION=0.0.1
# Database Configuration
DATABASE_URL=postgresql://username:password@localhost:5432/ecommerce_db
# DATABASE_URL=postgresql://username:password@localhost:5432/ecommerce_db
# For development, you can use SQLite:
# DATABASE_URL=sqlite:///./ecommerce.db
DATABASE_URL=sqlite:///./ecommerce.db
# Documentation
# .env.development
DOCUMENTATION_URL=http://localhost:8001
# .env.production
# DOCUMENTATION_URL=https://yourdomain.com/docs
# .env.staging
# DOCUMENTATION_URL=https://staging-docs.yourdomain.com
# JWT Configuration
JWT_SECRET_KEY=your-super-secret-jwt-key-change-in-production
JWT_EXPIRE_HOURS=24
JWT_EXPIRE_MINUTES=30
# API Configuration
API_HOST=0.0.0.0
@@ -15,9 +30,24 @@ DEBUG=False
# Rate Limiting
RATE_LIMIT_ENABLED=True
DEFAULT_RATE_LIMIT=100
DEFAULT_WINDOW_SECONDS=3600
RATE_LIMIT_REQUESTS=100
RATE_LIMIT_WINDOW=3600
# Logging
LOG_LEVEL=INFO
LOG_FILE=app.log
LOG_FILE=log/app.log
# Platform domain configuration
PLATFORM_DOMAIN=platform.com # Your main platform domain
# Custom domain features
ALLOW_CUSTOM_DOMAINS=True # Enable/disable custom domains
REQUIRE_DOMAIN_VERIFICATION=True # Require DNS verification
# SSL/TLS configuration for custom domains
SSL_PROVIDER=letsencrypt # or "cloudflare", "manual"
AUTO_PROVISION_SSL=False # Set to True if using automated SSL
# DNS verification
DNS_VERIFICATION_PREFIX=_letzshop-verify
DNS_VERIFICATION_TTL=3600