-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathproduction.env.example
More file actions
57 lines (48 loc) · 3.05 KB
/
Copy pathproduction.env.example
File metadata and controls
57 lines (48 loc) · 3.05 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
# ==============================================================================
# MLCopilot Platform — Production Environment Configuration Example
# Copy this file to .env.production and fill in secure random passwords/secrets.
# ==============================================================================
# ── Application Settings ──────────────────────────────────────────────────────
ENVIRONMENT=production
LOG_LEVEL=INFO
LOG_FORMAT=json
API_V1_PREFIX=/api/v1
CORS_ORIGINS=https://mlcopilot.yourdomain.com
# ── Security & Authentication ─────────────────────────────────────────────────
# IMPORTANT: Generate a strong 64-character secret key for production
# Command: openssl rand -hex 32
JWT_SECRET=CHANGE_ME_TO_A_MINIMUM_64_CHARACTER_SECURE_RANDOM_HEX_STRING
# ── PostgreSQL + pgvector Database ─────────────────────────────────────────────
POSTGRES_USER=mlcopilot
POSTGRES_PASSWORD=CHANGE_ME_SECURE_POSTGRES_PASSWORD
POSTGRES_DB=mlcopilot
DATABASE_URL=postgresql+asyncpg://mlcopilot:CHANGE_ME_SECURE_POSTGRES_PASSWORD@postgres:5432/mlcopilot
# ── Redis Cache & Task Broker ─────────────────────────────────────────────────
REDIS_URL=redis://redis:6379/0
# ── Neo4j Graph Database ──────────────────────────────────────────────────────
NEO4J_URI=bolt://neo4j:7687
NEO4J_USER=neo4j
NEO4J_PASSWORD=CHANGE_ME_SECURE_NEO4J_PASSWORD
# ── MinIO Document Storage ────────────────────────────────────────────────────
MINIO_ENDPOINT=minio:9000
MINIO_ACCESS_KEY=mlcopilot
MINIO_SECRET_KEY=CHANGE_ME_SECURE_MINIO_SECRET
MINIO_SECURE=false
MINIO_BUCKET=mlcopilot
# ── Local LLM & RAG Infrastructure (Ollama) ──────────────────────────────────
LLM_PROVIDER=ollama
OLLAMA_BASE_URL=http://host.docker.internal:11434
OLLAMA_MODEL=llama3.1:8b
EMBEDDING_MODEL_NAME=all-MiniLM-L6-v2
EMBEDDING_DIMENSION=384
RAG_SIMILARITY_THRESHOLD=0.35
RAG_MAX_CHUNKS=3
# ── OAuth 2.0 Integration (Optional) ──────────────────────────────────────────
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
OAUTH_REDIRECT_BASE=https://mlcopilot.yourdomain.com
FRONTEND_URL=https://mlcopilot.yourdomain.com
# ── Frontend Build Configuration (Next.js) ────────────────────────────────────
NEXT_PUBLIC_API_URL=https://mlcopilot.yourdomain.com/api/v1