-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
51 lines (40 loc) · 1.69 KB
/
.env.example
File metadata and controls
51 lines (40 loc) · 1.69 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
DATABASE_URL=postgres://ampel:ampel@localhost:5432/ampel
# Redis (for future use)
REDIS_URL=redis://localhost:6379
# JWT Configuration
JWT_SECRET=your-secret-key-min-32-characters-long
JWT_ACCESS_EXPIRY_MINUTES=15
JWT_REFRESH_EXPIRY_DAYS=7
# Encryption Key (for provider tokens)
# IMPORTANT: The key must decode to EXACTLY 32 bytes (256 bits) for AES-256 encryption.
# Generate a valid key with: openssl rand -base64 32
# Example output: nybpzOeKJ+hkxUJmupneLBmqlB7JyjfkyXp7LQ4+ZPQ=
# Verify your key decodes to 32 bytes: echo "YOUR_KEY" | base64 -d | wc -c
ENCRYPTION_KEY=your-base64-encoded-32-byte-key-here
# Server
HOST=0.0.0.0
PORT=8080
RUST_LOG=info,ampel=debug
# CORS
CORS_ORIGINS=http://localhost:3000,http://localhost:5173
# Frontend
VITE_API_URL=http://localhost:8080/api
# Translation API Keys (for ampel-i18n-builder)
# 4-Tier Provider Architecture for 99.9% translation reliability
# Tier 1: Systran API (Primary - Enterprise Neural MT)
# Sign up: https://www.systran.io/en/translation-api/
# Best for: All languages, highest speed (100 req/sec)
SYSTRAN_API_KEY=your-systran-api-key-here
# Tier 2: DeepL API (Fallback - European Language Specialist)
# Sign up: https://www.deepl.com/pro-api (if available)
# Best for: de, fr, fi, sv, pl, cs, it, nl, es, pt
DEEPL_API_KEY=your-deepl-api-key-here
# Tier 3: Google Cloud Translation API (Fallback - Broad Coverage)
# Sign up: https://cloud.google.com/translate
# Best for: ar, th, vi, zh, ja, ko, hi
GOOGLE_API_KEY=your-google-api-key-here
# Tier 4: OpenAI GPT-5-mini (Final Fallback - Complex Content)
# Sign up: https://platform.openai.com/api-keys
# Best for: Context-aware translations, technical content
OPENAI_API_KEY=your-openai-api-key-here