-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
82 lines (67 loc) · 1.48 KB
/
.env.example
File metadata and controls
82 lines (67 loc) · 1.48 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
# Environment Configuration
# Application
NODE_ENV=development
PORT=8080
API_PREFIX=api/v1
# Database
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_NAME=localstore_dev
DATABASE_USERNAME=postgres
DATABASE_PASSWORD=postgres
DATABASE_SSL=false
DATABASE_POOL_MIN=2
DATABASE_POOL_MAX=10
# Redis
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DB=0
REDIS_TTL=3600
# JWT Authentication
JWT_SECRET=your-super-secret-jwt-key-change-in-production
JWT_EXPIRES_IN=1h
JWT_REFRESH_SECRET=your-super-secret-refresh-key-change-in-production
JWT_REFRESH_EXPIRES_IN=7d
# CORS
CORS_ORIGINS=http://localhost:3000,http://localhost:3001,http://localhost:5173
CORS_CREDENTIALS=true
# Rate Limiting
RATE_LIMIT_TTL=60
RATE_LIMIT_MAX=100
# File Upload
MAX_FILE_SIZE=10485760
UPLOAD_PATH=./uploads
# AI Service
AI_SERVICE_URL=http://localhost:8000
AI_SERVICE_GRPC_URL=localhost:50051
AI_SERVICE_TIMEOUT=30000
# Email (Optional - for production)
SMTP_HOST=
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=
SMTP_PASSWORD=
EMAIL_FROM=noreply@localstore.vn
# Logging
LOG_LEVEL=debug
LOG_FILE_PATH=./logs
# Vietnamese Locale
DEFAULT_LOCALE=vi-VN
DEFAULT_CURRENCY=VND
DEFAULT_TIMEZONE=Asia/Ho_Chi_Minh
# Tenant Configuration
TENANT_CACHE_TTL=3600
DEFAULT_TENANT_PLAN=free
# Queue
QUEUE_REDIS_HOST=localhost
QUEUE_REDIS_PORT=6379
QUEUE_REDIS_PASSWORD=
# Monitoring (Optional)
SENTRY_DSN=
SENTRY_ENVIRONMENT=development
# Feature Flags
ENABLE_GRAPHQL=true
ENABLE_GRPC=false
ENABLE_WEBSOCKET=true
ENABLE_AI_FEATURES=false