-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
162 lines (130 loc) · 6.4 KB
/
Copy path.env.example
File metadata and controls
162 lines (130 loc) · 6.4 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
# ChittyChronicle Environment Variables
# Copy this file to .env and configure for your environment
#===============================================================================
# REQUIRED VARIABLES (Application will not function without these)
#===============================================================================
# Database Configuration (REQUIRED)
DATABASE_URL=postgresql://user:password@localhost:5432/chittychronicle
# Server Configuration
NODE_ENV=development
PORT=5000
# Frontend API Configuration (REQUIRED for production)
# In development: Leave empty to use relative URLs
# In production: Set to backend API URL
VITE_API_BASE_URL=
# Session Configuration (REQUIRED - auto-generated if not set)
SESSION_SECRET=generate-a-long-random-string-here
#===============================================================================
# AI SERVICES (REQUIRED for AI-powered features)
#===============================================================================
# Anthropic API Key (REQUIRED for contradiction detection)
# Without this, contradiction detection will use demo/fallback analysis
ANTHROPIC_API_KEY=your-anthropic-api-key
#===============================================================================
# CHITTYID AUTHENTICATION (Hybrid: Falls back to Replit Auth if not configured)
#===============================================================================
# ChittyID OAuth Client Credentials
# If not set: Falls back to Replit Auth for development
CHITTYID_CLIENT_ID=your-chittyid-client-id
CHITTYID_CLIENT_SECRET=your-chittyid-client-secret
CHITTYID_ISSUER_URL=https://auth.chitty.com/oidc
CHITTYID_REDIRECT_URI=http://localhost:5000/auth/callback
# ChittyID Service Token (REQUIRED for ChittyID minting)
# Without this: Cannot mint new ChittyIDs (validation will fail)
# ChittyIDs must NEVER be generated locally - they come from id.chitty.cc
CHITTYID_SERVICE_TOKEN=your-chittyid-service-token
# Replit Auth Configuration (Fallback when ChittyID unavailable)
REPLIT_DOMAINS=your-repl-domain.replit.dev
REPL_ID=your-repl-id
ISSUER_URL=https://replit.com/oidc
#===============================================================================
# OPTIONAL CHITTYOS INTEGRATIONS (Graceful fallback if not configured)
#===============================================================================
# ChittyPM Project Management Integration (OPTIONAL)
# If not set: Manual task management (no auto-sync)
# Fallback: User enters tasks/deadlines manually
CHITTYPM_API_URL=http://localhost:5001/api
CHITTYPM_WS_URL=ws://localhost:5001/ws
# ChittyConnect Context Sharing (OPTIONAL)
# If not set: Local JSONL logging only (no cross-service sharing)
# Fallback: Events logged to reports/context-events.jsonl
CHITTYCONNECT_BASE_URL=https://connect.chitty.cc
CHITTYCHRONICLE_SERVICE_TOKEN=your-service-token
# ChittyBeacon Alerting Service (OPTIONAL)
# If not set: Basic WebSocket alerts only (no email/SMS/push)
# Fallback: Web-only alerting via WebSocket
CHITTY_BEACON_API_URL=https://api.chittybeacon.com/v1
CHITTY_BEACON_WS_URL=wss://beacon.chittybeacon.com
# ChittyTrust / ChittyChain (OPTIONAL)
# If not set: Trust scoring works, but no blockchain attestation
# Fallback: Trust analysis without immutable audit trail
CHITTYCHAIN_BASE_URL=https://chain.chitty.cc
CHITTY_TRUST_API_URL=https://api.chittytrust.com/v1
CHITTY_TRUST_API_KEY=your-trust-api-key
#===============================================================================
# FILE STORAGE (OPTIONAL)
#===============================================================================
# Google Cloud Storage (OPTIONAL)
# If not set: File uploads disabled
# Fallback: Timeline entries without file attachments
GCS_BUCKET_NAME=chittychronicle-uploads
GCS_PROJECT_ID=your-gcp-project-id
GCS_KEY_FILE=/path/to/service-account-key.json
GOOGLE_CLOUD_PROJECT=your-gcp-project-id
GOOGLE_CLOUD_STORAGE_BUCKET=chittychronicle-uploads
#===============================================================================
# NOTIFICATION DELIVERY (OPTIONAL - Currently only WebSocket works)
#===============================================================================
# Email Configuration (PLANNED - Not yet implemented)
# Status: Console.log placeholder only
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USER=notifications@chitty.com
SMTP_PASS=your-smtp-password
EMAIL_FROM=ChittyChronicle <notifications@chitty.com>
# SMS Configuration (PLANNED - Not yet implemented)
# Status: Console.log placeholder only
TWILIO_ACCOUNT_SID=your-twilio-sid
TWILIO_AUTH_TOKEN=your-twilio-token
TWILIO_PHONE_NUMBER=+1234567890
#===============================================================================
# DEPLOYMENT & MONITORING (OPTIONAL)
#===============================================================================
# Cloudflare Configuration (OPTIONAL)
CLOUDFLARE_ACCOUNT_ID=your-cloudflare-account-id
CLOUDFLARE_API_TOKEN=your-cloudflare-api-token
CLOUDFLARE_ZONE_ID=your-zone-id
# Redis Configuration (OPTIONAL)
REDIS_URL=redis://localhost:6379
# Monitoring (OPTIONAL)
SENTRY_DSN=https://your-sentry-dsn@sentry.io/project-id
DATADOG_API_KEY=your-datadog-api-key
#===============================================================================
# CHITTYOS SERVICE REGISTRY (OPTIONAL)
#===============================================================================
# Chronicle Service Identity
CHITTYCHRONICLE_BASE_URL=http://localhost:5000
CHITTYCHRONICLE_PUBLIC_URL=http://localhost:5000
CHITTYCHRONICLE_SERVICE_ID=chitty.cc/chronicle
# Central ChittyOS Services
CHITTYREGISTRY_BASE_URL=https://registry.chitty.cc
CHITTYROUTER_BASE_URL=https://router.chitty.cc
CHITTYID_BASE_URL=https://id.chitty.cc
CHITTYLEDGER_BASE_URL=https://ledger.chitty.cc
CHITTYVERIFY_BASE_URL=https://verify.chitty.cc
CHITTYCERTIFY_BASE_URL=https://certify.chitty.cc
CHITTYASSETS_BASE_URL=https://assets.chitty.cc
CHITTYCANON_BASE_URL=https://canon.chitty.cc
# MCP Integration (OPTIONAL)
CHITTYMCP_BASE_URL=https://mcp.chitty.cc
ENABLE_MCP_INTEGRATION=true
#===============================================================================
# FEATURE FLAGS (Control optional functionality)
#===============================================================================
# Core Features
ENABLE_WEBSOCKET=true
ENABLE_AI_ANALYSIS=true
ENABLE_EXPORT_PDF=true
# Integration Features (automatically disabled if services unavailable)
USE_CHITTYPM_MOCKS=false # Set true to use mock ChittyPM in development
AUTH_PROVIDER=chittyid # Options: chittyid, replit (auto-detects if not set)