-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.proxy.example
More file actions
95 lines (73 loc) · 3.26 KB
/
.env.proxy.example
File metadata and controls
95 lines (73 loc) · 3.26 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
# ================================================
# Terraphim MedGemma LLM Proxy Environment Variables
# ================================================
# Copy this file to .env and fill in your actual values
# DO NOT commit the actual .env file to version control
#
# Usage:
# cp .env.proxy.example .env
# # Edit .env with your keys
# source .env
#
# ================================================
# ================================================
# PROXY CONFIGURATION (Required)
# ================================================
# Proxy API Key - Used to authenticate clients connecting to the proxy
# Minimum 32 characters recommended for security
# Generate with: openssl rand -hex 32
PROXY_API_KEY=sk_medgemma_proxy_your_secure_random_key_here_min_32_chars
# Bind address (optional, defaults to 127.0.0.1)
# PROXY_HOST=127.0.0.1
# Port number (optional, defaults to 3456)
# PROXY_PORT=3456
# ================================================
# HUGGINGFACE INFERENCE API (Primary Provider - Required)
# ================================================
# Get your token from: https://huggingface.co/settings/tokens
# You need a Pro account or Inference API access for MedGemma models
HUGGINGFACE_API_KEY=hf_your_huggingface_token_here
# ================================================
# OPENROUTER (Fallback Provider - Recommended)
# ================================================
# Get your key from: https://openrouter.ai/keys
# Used as fallback when HuggingFace is unavailable
OPENROUTER_API_KEY=sk-or-your-openrouter-api-key-here
# ================================================
# LOGGING CONFIGURATION (Optional)
# ================================================
# Log level: trace, debug, info, warn, error
# LOG_LEVEL=info
# Enable JSON format for structured logging
# LOG_JSON=false
# ================================================
# MANAGEMENT API (Optional)
# ================================================
# Enable runtime configuration changes without restart
# WARNING: Only enable in secure environments
# MANAGEMENT_API_KEY=sk_mgmt_your_management_api_key_here
# ================================================
# WEBHOOK INTEGRATION (Optional)
# ================================================
# Configure webhook for event notifications
# WEBHOOK_SECRET=whsec_your_webhook_signing_secret_here
# ================================================
# SECURITY SETTINGS (Optional)
# ================================================
# Enable request signing verification (if implemented)
# REQUEST_SIGNING_SECRET=
# Allowed origins for CORS (comma-separated)
# ALLOWED_ORIGINS=http://localhost:3000,https://yourapp.com
# ================================================
# DEVELOPMENT/TESTING (Optional)
# ================================================
# Enable mock provider for offline development
# ENABLE_MOCK_PROVIDER=true
# Mock provider endpoint (if running separate mock server)
# MOCK_API_URL=http://127.0.0.1:3457
# ================================================
# EXAMPLE VALUES (Replace with your actual keys)
# ================================================
# PROXY_API_KEY=sk_medgemma_proxy_7f8a9b2c3d4e5f60718293a4b5c6d7e8f
# HUGGINGFACE_API_KEY=hf_abcdefghijklmnopqrstuvwxyz1234567890AB
# OPENROUTER_API_KEY=sk-or-v1-a1b2c3d4e5f6789012345678901234567890abcdef