forked from zkorum/agora
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
51 lines (41 loc) · 1.99 KB
/
Copy pathenv.example
File metadata and controls
51 lines (41 loc) · 1.99 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
# Database Configuration
CONNECTION_STRING=postgresql://user:password@localhost:5432/agora
# Maximum number of connections in the pool (default: 30)
DB_POOL_SIZE=30
# Idle timeout in seconds for closing idle connections (default: 60, 0 = never close)
DB_POOL_IDLE_TIMEOUT=60
# Polis Service
POLIS_BASE_URL=http://localhost:5000
# Math Updater Settings
MATH_UPDATER_SCAN_INTERVAL_MS=2000
MATH_UPDATER_BATCH_SIZE=20
MATH_UPDATER_JOB_CONCURRENCY=10
MATH_UPDATER_MIN_TIME_BETWEEN_UPDATES_MS=20000
# AWS Configuration (Production)
# AWS_SECRET_ID=your-secret-id
# AWS_SECRET_REGION=us-east-1
# AWS Bedrock AI Label & Summary Generation
AWS_AI_LABEL_SUMMARY_ENABLE=true
AWS_AI_LABEL_SUMMARY_REGION=eu-west-1
AWS_AI_LABEL_SUMMARY_MODEL_ID=mistral.mistral-large-2402-v1:0
AWS_AI_LABEL_SUMMARY_TEMPERATURE=0.4
AWS_AI_LABEL_SUMMARY_TOP_P=0.8
AWS_AI_LABEL_SUMMARY_MAX_TOKENS=8192
# Custom AI prompt (optional - defaults to built-in prompt if not specified)
# AWS_AI_LABEL_SUMMARY_PROMPT="Your custom prompt here..."
# Google Cloud Translation API Configuration
# Optional: Translation API location (default: "us-central1")
# GOOGLE_CLOUD_TRANSLATION_LOCATION=us-central1
# Optional: API endpoint (default: "translate.googleapis.com")
# GOOGLE_CLOUD_TRANSLATION_ENDPOINT=translate.googleapis.com
# Authentication Options (choose one):
# Option 1: GOOGLE_APPLICATION_CREDENTIALS (local development)
# Point to the path of your service account JSON key file
# The project_id will be extracted from this file automatically
# GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account-key.json
# Option 2: AWS Secrets Manager (production - recommended)
# Store the entire Google Cloud service account JSON in AWS Secrets Manager
# The project_id will be extracted from the service account JSON automatically
# If set, this takes precedence over GOOGLE_APPLICATION_CREDENTIALS
# In production, this should be defined and point to the secret containing the service account JSON
# GOOGLE_CLOUD_SERVICE_ACCOUNT_AWS_SECRET_KEY=google-cloud-service-account