-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
114 lines (97 loc) · 3.44 KB
/
.env.example
File metadata and controls
114 lines (97 loc) · 3.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# Multi-ISP Support Environment Configuration
# Copy this file to .env and update with your actual values
# ===========================================
# Database Configuration
# ===========================================
DATABASE_URL=postgresql://ddos_user:ddos_pass@postgres:5432/ddos_platform
POSTGRES_DB=ddos_platform
POSTGRES_USER=ddos_user
POSTGRES_PASSWORD=ddos_pass
# ===========================================
# Redis Configuration
# ===========================================
REDIS_HOST=redis
REDIS_PORT=6379
# ===========================================
# JWT Authentication
# ===========================================
# Generate a secure key: python -c "import secrets; print(secrets.token_urlsafe(32))"
SECRET_KEY=your_secret_key_here_replace_with_random_string
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=1440
# ===========================================
# Payment Gateways
# ===========================================
# Stripe (Primary payment gateway)
# Get keys from: https://dashboard.stripe.com/apikeys
STRIPE_SECRET_KEY=sk_test_your_stripe_secret_key
STRIPE_PUBLISHABLE_KEY=pk_test_your_publishable_key
STRIPE_WEBHOOK_SECRET=whsec_your_webhook_secret
# PayPal (Optional)
# Get from: https://developer.paypal.com/developer/applications
PAYPAL_CLIENT_ID=your_paypal_client_id
PAYPAL_CLIENT_SECRET=your_paypal_client_secret
PAYPAL_MODE=sandbox # Use 'live' for production
# bKash (Optional - for Bangladesh market)
# Contact bKash for merchant credentials
BKASH_APP_KEY=your_bkash_app_key
BKASH_APP_SECRET=your_bkash_app_secret
BKASH_USERNAME=your_bkash_username
BKASH_PASSWORD=your_bkash_password
BKASH_BASE_URL=https://tokenized.sandbox.bka.sh # or production URL
# ===========================================
# Storage Configuration
# ===========================================
# Directory for storing generated reports
# In production, mount a persistent volume to this path
REPORTS_DIR=/app/reports
# ===========================================
# API Server Configuration
# ===========================================
HOST=0.0.0.0
PORT=8000
DEBUG=true
# CORS Configuration
# Comma-separated list of allowed origins
ALLOWED_ORIGINS=http://localhost:3000,http://localhost:8000,http://127.0.0.1:3000
# ===========================================
# Subscription Plans Configuration
# ===========================================
# These are defined in code but can be overridden via environment
PLAN_BASIC_PRICE=29.99
PLAN_PROFESSIONAL_PRICE=99.99
PLAN_ENTERPRISE_PRICE=299.99
# ===========================================
# Email Configuration (Optional)
# ===========================================
# For sending invoices and notifications
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your_email@gmail.com
SMTP_PASSWORD=your_app_password
EMAIL_FROM=noreply@yourdomain.com
# ===========================================
# Monitoring & Logging
# ===========================================
LOG_LEVEL=INFO
PROMETHEUS_PORT=9090
GRAFANA_PORT=3001
# ===========================================
# Feature Flags
# ===========================================
ENABLE_STRIPE=true
ENABLE_PAYPAL=false
ENABLE_BKASH=false
ENABLE_AUTO_RENEWAL=true
ENABLE_EMAIL_NOTIFICATIONS=false
# ===========================================
# Security Settings
# ===========================================
# Rate limiting
RATE_LIMIT_ENABLED=true
RATE_LIMIT_PER_MINUTE=60
# Session timeout (in minutes)
SESSION_TIMEOUT=30
# Password requirements
MIN_PASSWORD_LENGTH=8
REQUIRE_SPECIAL_CHARACTERS=true