-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathenv.example
More file actions
92 lines (74 loc) · 3.44 KB
/
env.example
File metadata and controls
92 lines (74 loc) · 3.44 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
# Determine whether to mock attestation
DEV=false
# Server Configuration
SERVER_HOST=0.0.0.0
SERVER_PORT=8081
# Database Configuration
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_NAME=chat_api
DATABASE_USER=postgres
DATABASE_PASSWORD=postgres
DATABASE_MAX_CONNECTIONS=10
DATABASE_TLS_ENABLED=false
# DATABASE_TLS_CA_CERT_PATH=/path/to/ca-cert.pem # Optional, for custom CA certificates
# Patroni Configuration (optional, for production clusters)
# Leave DATABASE_PRIMARY_APP_ID empty to use simple postgres connection
# DATABASE_PRIMARY_APP_ID=postgres-primary # App ID for Patroni cluster discovery
# DATABASE_REFRESH_INTERVAL=30 # Cluster state refresh interval in seconds
# DATABASE_MOCK=false # Set to true to use mock database for testing
# OAuth Configuration - Google
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
# OAuth Configuration - Github
GITHUB_CLIENT_ID=your-github-client-id
GITHUB_CLIENT_SECRET=your-github-client-secret
# OAuth Redirect URI (base URL for OAuth callbacks from providers)
REDIRECT_URI=http://localhost:8081
# Admin Configuration
# Comma-separated list of email domains that are granted admin access
# Example: near.ai,admin.org
AUTH_ADMIN_DOMAINS=
# Frontend URL (where to redirect users after authentication)
FRONTEND_URL=http://localhost:3000
# OpenAI/Cloud API Configuration
# REQUIRED: API key for the NEAR AI Cloud. Get your API key at https://cloud-api.near.ai
OPENAI_API_KEY=your-api-key-here
# OPENAI_API_KEY_FILE=/path/to/api-key-file # Optional, reads API key from file (takes precedence over OPENAI_API_KEY)
# REQUIRED for local development: Cloud API base URL (must include /v1)
# For NEAR AI: https://cloud-api.near.ai/v1
# For OpenAI: https://api.openai.com/v1
OPENAI_BASE_URL=https://cloud-api.near.ai/v1
# VPC Authentication (optional, for confidential VMs)
# When VPC_SHARED_SECRET_FILE is set, the API key will be obtained dynamically via VPC authentication
# This takes precedence over OPENAI_API_KEY and OPENAI_API_KEY_FILE
# VPC_SHARED_SECRET_FILE=/config/keyfile # Path to the VPC shared secret file
# VPC_CLIENT_ID=chat-api-client # Client ID for VPC authentication (defaults to chat-api-client)
# Logging Configuration
LOG_LEVEL=info
LOG_FORMAT=json
# LOG_MODULE_API=debug # Optional per-module overrides
# LOG_MODULE_SERVICES=debug
# LOG_MODULE_DATABASE=debug
# CORS Configuration (comma-separated list of allowed origins)
# For development, you can use: http://localhost:3000,http://localhost:3001
# For production, use your actual frontend domains: https://app.yourdomain.com
CORS_ALLOWED_ORIGINS=http://localhost:3000
# NEAR Authentication (NEP-413)
# Allowed recipients (host or host:port) for signed messages. Comma-separated for multiple frontends.
# Defaults to private.near.ai. Example: private.near.ai,agent.near.ai
# For local dev: localhost:3000 or localhost:3000,localhost:3001
NEAR_EXPECTED_RECIPIENTS=private.near.ai,agent.near.ai
# NEAR Configuration
# Required: NEAR JSON-RPC endpoint used for on-chain queries (e.g. balance checks)
NEAR_RPC_URL=https://free.rpc.fastnear.com
# Dstack Gateway Subdomain
GATEWAY_SUBDOMAIN=cvm1.near.ai
# Docker build args for frontend bundle (used by docker compose build)
# See build-config.toml for the recommended values.
PRIVATE_CHAT_FRONTEND_VERSION=a6e034845fdb845ce72762e2596e433cb4c08057
POSTHOG_KEY=phc_glaMeuuO1gLFSB2U9y27MchidXEmSnFOQLB8cceyVSb
POSTHOG_HOST=https://us.i.posthog.com
# Billing
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=