-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.env.template
More file actions
84 lines (72 loc) · 2.76 KB
/
.env.template
File metadata and controls
84 lines (72 loc) · 2.76 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
# Terraphim Browser Extensions Environment Template
# Copy this file to .env and fill in your values
# NEVER commit the actual .env file with real credentials
# ==============================================
# DEVELOPMENT CONFIGURATION
# ==============================================
# Terraphim Server Configuration
TERRAPHIM_SERVER_URL=http://localhost:8000
TERRAPHIM_AUTO_DISCOVERY=true
TERRAPHIM_HEALTH_ENDPOINT=/health
# ==============================================
# CLOUDFLARE AI CONFIGURATION
# ==============================================
# Get these from: https://dash.cloudflare.com/profile/api-tokens
# Your Cloudflare Account ID (found in right sidebar of Cloudflare dashboard)
CLOUDFLARE_ACCOUNT_ID=your_32_character_account_id_here
# Your Cloudflare API Token with AI:Read permissions
CLOUDFLARE_API_TOKEN=your_api_token_with_ai_read_permissions
# ==============================================
# PRODUCTION CONFIGURATION (Optional)
# ==============================================
# Production Terraphim Server
TERRAPHIM_PROD_SERVER_URL=https://api.terraphim.cloud
TERRAPHIM_BACKUP_SERVER_URL=https://api-backup.terraphim.cloud
# ==============================================
# EXTENSION DEVELOPMENT
# ==============================================
# Extension development mode
DEV_MODE=true
# Enable debug logging
DEBUG_LOGGING=true
# WASM module settings
WASM_ENABLED=true
WASM_FALLBACK=true
# ==============================================
# SECURITY NOTES
# ==============================================
#
# 1. This file should NEVER be committed to version control
# 2. Add .env to your .gitignore file
# 3. Only use these variables for development/testing
# 4. For production extensions, use the Chrome storage API
# 5. Credentials should be entered through the extension options page
#
# ==============================================
# CLOUDFLARE SETUP INSTRUCTIONS
# ==============================================
#
# 1. Go to https://dash.cloudflare.com/profile/api-tokens
# 2. Click "Create Token"
# 3. Use the "AI" template or create custom token with:
# - Permissions: Cloudflare AI:Read
# - Account Resources: Include your account
# 4. Copy the generated token (you'll only see it once)
# 5. Get your Account ID from any domain's right sidebar
#
# ==============================================
# TERRAPHIM SERVER SETUP
# ==============================================
#
# For local development:
# 1. Run the Terraphim server locally: cargo run
# 2. Server typically runs on http://localhost:8000
# 3. Extensions will auto-discover local servers
# 4. Test with: curl http://localhost:8000/health
#
# For production:
# 1. Use your hosted Terraphim server URL
# 2. Ensure HTTPS is enabled
# 3. Configure CORS for browser extensions
# 4. Test API endpoints before deployment
#