-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
97 lines (80 loc) · 2.64 KB
/
Copy path.env.example
File metadata and controls
97 lines (80 loc) · 2.64 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
# Test Environment Variables
NODE_ENV=test
PORT=3001
# Database
DATABASE_URL="postgresql://test:test@localhost:5432/whatschat_test"
# JWT
JWT_SECRET="test-jwt-secret-key-for-testing-only"
JWT_EXPIRES_IN="7d"
# Redis
REDIS_URL="redis://localhost:6379/1"
# AWS S3 (Mock)
AWS_ACCESS_KEY_ID="test-access-key"
AWS_SECRET_ACCESS_KEY="test-secret-key"
AWS_REGION="us-east-1"
AWS_S3_BUCKET="test-bucket"
# Email (Mock)
SMTP_HOST="localhost"
SMTP_PORT="587"
SMTP_USER="test@example.com"
SMTP_PASS="test-password"
# Rate Limiting
RATE_LIMIT_WINDOW_MS="900000"
RATE_LIMIT_MAX_REQUESTS="100"
# File Upload
MAX_FILE_SIZE="10485760"
ALLOWED_FILE_TYPES="image/jpeg,image/png,image/gif,image/webp,image/heic,image/heif,video/mp4,video/webm,video/quicktime,audio/mpeg"
UPLOAD_DIR="./uploads"
MINIO_ENDPOINT="localhost"
MINIO_PORT="9000"
MINIO_USE_SSL="false"
MINIO_ACCESS_KEY="minioadmin"
MINIO_SECRET_KEY="minioadmin"
MINIO_BUCKET="whatschat-media"
MINIO_REGION="us-east-1"
MINIO_PUBLIC_BASE_URL="http://localhost:3001/uploads/media"
# Cassandra / ScyllaDB (optional, leave empty to disable)
CASSANDRA_CONTACT_POINTS="localhost:9042"
CASSANDRA_KEYSPACE="whatschat"
CASSANDRA_LOCAL_DC="datacenter1"
# MongoDB (optional)
MONGODB_URI="mongodb://localhost:27017/whatschat"
# Elasticsearch (optional)
ELASTICSEARCH_NODE="http://localhost:9200"
# ELASTICSEARCH_USERNAME=
# ELASTICSEARCH_PASSWORD=
# Vision (optional, Python CV service for image tags and moderation)
# VISION_ENABLED=true
# VISION_SERVICE_URL="http://localhost:8001"
# VISION_TIMEOUT_MS=15000
# VISION_MAX_IMAGES_PER_POST=3
# VISION_MODERATION_ENABLED=true
# VISION_NSFW_ENABLED=true
# VISION_NSFW_THRESHOLD=0.5
# VISION_MAX_VIDEO_FRAMES=30
# VISION_VIDEO_FRAME_INTERVAL_SEC=2.0
# Kafka topics (optional overrides)
# KAFKA_TOPIC_POST_CREATED="post.created"
# KAFKA_TOPIC_FEED_FANOUT="feed.fanout"
# KAFKA_TOPIC_COMMENT_CREATED="comment.created"
# WebRTC
TURN_SERVER_URL="turn:localhost:3478"
TURN_SERVER_USERNAME="test"
TURN_SERVER_CREDENTIAL="test"
# AI
OLLAMA_BASE_URL="http://localhost:11434"
OLLAMA_DEFAULT_MODEL="qwen3-coder:30b"
# Explore AI (optional BFF proxy; clients must not call explore-ai directly)
# EXPLORE_AI_ENABLED=true
# EXPLORE_AI_BASE_URL="http://localhost:9000"
# EXPLORE_AI_SERVICE_KEY="your-shared-service-key"
# EXPLORE_AI_TIMEOUT_MS=60000
# Media (image + video + voice in one service, port 3456)
MEDIA_GENERATION_API_URL="http://localhost:3456"
# Or separate URLs (optional):
# VIDEO_GENERATION_API_URL="http://localhost:3456"
# IMAGE_GENERATION_API_URL="http://localhost:3456"
# VOICE_GENERATION_API_URL="http://localhost:3456"
# REPLICATE_API_TOKEN=""
# Recommendation
RECOMMENDATION_API_URL="http://localhost:8000"