-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.peach.example
More file actions
57 lines (47 loc) · 2.71 KB
/
.env.peach.example
File metadata and controls
57 lines (47 loc) · 2.71 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
# Environment configuration for Peach server deployment
# Copy this file to .env and fill in your actual values
# ==============================================================================
# PEACH SERVER NGINX PROXY CONFIGURATION (Required)
# ==============================================================================
# These environment variables configure the Peach server's nginx proxy
# to forward requests to the Math2Visual container
# Your domain name (e.g., math2visual.peachhub.inf.ethz.ch)
VIRTUAL_HOST=math2visual.peachhub.inf.ethz.ch
# Let's Encrypt SSL certificate domain (usually same as VIRTUAL_HOST)
LETSENCRYPT_HOST=math2visual.peachhub.inf.ethz.ch
# Email for Let's Encrypt certificate notifications
LETSENCRYPT_EMAIL=junling.wang@ai.ethz.ch
# ===========================================
# Peach Server Data Directory
# ===========================================
# All container data (uploads, analytics, datasets) will be stored here
PEACHLAB_DATA_DIR=/var/lib/peachlab/data/math2visual
# ==============================================================================
# API KEYS (Required for AI features)
# ==============================================================================
OPENAI_API_KEY=your-openai-api-key-here
GEMINI_API_KEY=your-gemini-api-key-here
# ==============================================================================
# DATABASE CONFIGURATION (Optional - uses defaults if not set)
# ==============================================================================
POSTGRES_PASSWORD=math2visual_password
DATABASE_URL=postgresql://math2visual_user:math2visual_password@postgres:5432/math2visual_analytics
# ==============================================================================
# CORS CONFIGURATION (Required for production)
# ==============================================================================
# Set to your domain(s) - comma-separated for multiple domains
# Example: CORS_ORIGINS=https://math2visual.peachhub.inf.ethz.ch,https://www.math2visual.peachhub.inf.ethz.ch
CORS_ORIGINS=https://math2visual.peachhub.inf.ethz.ch
FRONTEND_URL=https://math2visual.peachhub.inf.ethz.ch
# ==============================================================================
# ANALYTICS (Optional)
# ==============================================================================
# Set to 'true' to enable analytics features
VITE_ENABLE_ANALYTICS=false
# ==============================================================================
# CLEANUP SERVICE (Optional)
# ==============================================================================
# Only used if you start with --profile cleanup
# WARNING: Do NOT use cleanup service when analytics is enabled
CLEANUP_OUTPUT_AGE_HOURS=24
CLEANUP_TEMP_SVG_AGE_HOURS=1