-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
49 lines (40 loc) · 1.12 KB
/
.env.example
File metadata and controls
49 lines (40 loc) · 1.12 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
# Application
APP_ENV=development
APP_NAME="E-Commerce API"
APP_VERSION="1.0.0"
SECRET_KEY=your-super-secret-key-change-in-production-min-32-chars
DEBUG=true
ALLOWED_HOSTS=["http://localhost:3000","http://localhost:8080"]
# Database
DATABASE_URL=postgresql+asyncpg://postgres:password@localhost:5432/ecommerce
DATABASE_POOL_SIZE=10
DATABASE_MAX_OVERFLOW=20
# Redis
REDIS_URL=redis://localhost:6379/0
REDIS_CACHE_TTL=3600
# JWT
JWT_ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
REFRESH_TOKEN_EXPIRE_DAYS=7
# Stripe
STRIPE_SECRET_KEY=sk_test_your_stripe_secret_key
STRIPE_WEBHOOK_SECRET=whsec_your_webhook_secret
STRIPE_PUBLISHABLE_KEY=pk_test_your_stripe_publishable_key
# Email (SMTP)
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your-email@gmail.com
SMTP_PASSWORD=your-app-password
EMAIL_FROM=noreply@yourstore.com
# Storage (S3-compatible)
AWS_ACCESS_KEY_ID=your-access-key
AWS_SECRET_ACCESS_KEY=your-secret-key
AWS_REGION=us-east-1
S3_BUCKET_NAME=ecommerce-assets
# Sentry
SENTRY_DSN=https://your-sentry-dsn@sentry.io/project-id
# Pagination defaults
DEFAULT_PAGE_SIZE=20
MAX_PAGE_SIZE=100
# Rate limiting
RATE_LIMIT_PER_MINUTE=60