-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.stage.example
More file actions
76 lines (62 loc) · 3.21 KB
/
Copy path.env.stage.example
File metadata and controls
76 lines (62 loc) · 3.21 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
# Staging Environment Configuration
# Copy this file to .env.stage and customize as needed:
# cp .env.stage.example .env.stage
#
# This file contains environment variable overrides for local production verification.
# Use with: export $(cat .env.stage | xargs) && docker-compose -f docker-compose.prod.yml up --build
# Or use the helper script: ./scripts/run-stage.sh
#
# Note: Service-specific variables (GOOGLE_API_KEY, PAYLOAD_SECRET, etc.) should be set in:
# - backend/.env (for backend service)
# - payload_cms/.env (for payload_cms service)
# =============================================================================
# URL Configuration - Override production URLs with localhost for local access
# =============================================================================
# Backend URL - use localhost for local access
BACKEND_URL=http://localhost:8000
# Payload CMS URLs - use localhost for local access
PAYLOAD_PUBLIC_SERVER_URL=http://localhost:3001
FRONTEND_URL=http://localhost:3000
# Frontend public URLs - use localhost for local access
# These are used both as build args and runtime environment variables
NEXT_PUBLIC_BACKEND_URL=http://localhost:8000
NEXT_PUBLIC_PAYLOAD_URL=http://localhost:3001
# CORS Origins - include localhost for local access
CORS_ORIGINS=http://localhost:3000,http://localhost:3001
# =============================================================================
# Backend Service Variables (optional overrides)
# =============================================================================
# These can be overridden here, but are typically set in backend/.env
# Uncomment and set if you want to override defaults:
# MONGO_URI=mongodb://mongodb:27017
# MONGO_DB_NAME=litecoin_rag_db
# MONGO_COLLECTION_NAME=litecoin_docs
# MONGO_DATABASE_NAME=litecoin_rag_db
# CMS_ARTICLES_COLLECTION_NAME=cms_articles
# EMBEDDING_MODEL=text-embedding-004
# LOG_LEVEL=INFO
# JSON_LOGGING=false
# GOOGLE_API_KEY=your-google-api-key-here # Should be in backend/.env
# =============================================================================
# Payload CMS Service Variables (optional overrides)
# =============================================================================
# These can be overridden here, but are typically set in payload_cms/.env
# Uncomment and set if you want to override defaults:
# DATABASE_URI=mongodb://mongodb:27017/payload_cms
# PAYLOAD_SECRET=your-secret-key-here # Should be in payload_cms/.env
# NODE_ENV=production # Already set in docker-compose.prod.yml
# =============================================================================
# Monitoring & Observability (optional)
# =============================================================================
# Grafana Admin Credentials
# GRAFANA_ADMIN_USER=admin
# GRAFANA_ADMIN_PASSWORD=admin
# LangSmith (optional LLM tracing)
# LANGCHAIN_API_KEY=your-langchain-api-key
# LANGCHAIN_PROJECT=litecoin-knowledge-hub
# LANGCHAIN_ENVIRONMENT=staging
# =============================================================================
# Cloudflare Tunnel (optional - leave empty to disable)
# =============================================================================
# Uncomment and set if you want to test with cloudflared locally
# CLOUDFLARE_TUNNEL_TOKEN=