-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
42 lines (36 loc) · 1.38 KB
/
.env.example
File metadata and controls
42 lines (36 loc) · 1.38 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
# Required - Redis Configuration (for rate limiting storage only)
# Note: Redis is ONLY used for distributed rate limiting, NOT for sessions
REDIS_MODE=standalone
REDIS_HOST=localhost
REDIS_PORT=6379
# For Redis Sentinel (production)
# REDIS_MODE=sentinel
# REDIS_MASTER_NAME=mymaster
# REDIS_SENTINEL_1_HOST=sentinel1
# REDIS_SENTINEL_1_PORT=26379
# REDIS_SENTINEL_2_HOST=sentinel2
# REDIS_SENTINEL_2_PORT=26379
# REDIS_SENTINEL_3_HOST=sentinel3
# REDIS_SENTINEL_3_PORT=26379
# Required - OpenSearch Configuration
OPENSEARCH_HOST=http://localhost:9200
OPENSEARCH_USERNAME=admin
OPENSEARCH_PASSWORD=admin
# Optional - OpenSearch TLS
OPENSEARCH_USE_TLS=false
OPENSEARCH_SSL_VERIFY=true
# Required - Application Configuration
PORT=3001
CORS_ALLOWED_ORIGIN=*
TRUST_PROXY=true
# Required - Rate Limiting Configuration (IP-based, anonymized)
# IPs are anonymized before storage (192.168.1.x → 192.168.1.0)
THROTTLE_GLOBAL_LIMIT=20
THROTTLE_BURST_LIMIT=3
# Required - Client Validation
ALLOWED_CLIENT_NAMES=wuzzy-web
ALLOWED_APPLICATIONS: Comma-separated list of allowed application names (default: graphql-images,graphql-video,graphql-audio)
MAX_QUERY_LENGTH: Maximum length of user_query field (default: 5000)
MAX_BATCH_SIZE: Maximum queries per batch (default: 50)
MAX_QUERY_RESPONSE_HITS: Maximum items in query_response_hit_ids (default: 100)
BULK_CHUNK_SIZE: OpenSearch bulk indexing chunk size (default: 20)