-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
35 lines (30 loc) · 848 Bytes
/
.env.example
File metadata and controls
35 lines (30 loc) · 848 Bytes
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
# Server Configuration
SERVER_PORT=5010
SERVER_READ_TIMEOUT=30
SERVER_WRITE_TIMEOUT=30
SERVER_IDLE_TIMEOUT=60
# MongoDB Configuration
MONGODB_URI=mongodb://localhost:27017
MONGODB_DATABASE=comment
MONGODB_MAX_POOL_SIZE=100
MONGODB_MIN_POOL_SIZE=10
MONGODB_MAX_CONN_IDLE_TIME=60s
# Redis Configuration
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DB=0
# Auth Configuration
AUTH_SERVICE_URL=http://localhost:5000
AUTH_INTROSPECTION_ENDPOINT=/oauth/introspect
AUTH_CLIENT_ID=comment-service
AUTH_CLIENT_SECRET=comment-service-secret
# Notifier Configuration
NOTIFIER_SERVICE_URL=http://localhost:5001
NOTIFIER_ENABLED=true
# Moderation Configuration
MODERATION_REQUIRE_APPROVAL=true
MODERATION_BAD_WORDS=spam,viagra,casino,xxx,porn
MODERATION_MAX_COMMENT_LENGTH=5000
MODERATION_MAX_REPLY_DEPTH=5
MODERATION_RATE_LIMIT_PER_MINUTE=10