-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.env.example
More file actions
112 lines (99 loc) · 5.11 KB
/
Copy path.env.example
File metadata and controls
112 lines (99 loc) · 5.11 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
# ==============================================================================
# OpenChat Environment Configuration
# ==============================================================================
# Copy this file to .env.local and fill in your values
#
# LEGEND:
# - REQUIRED - Must be set for the app to work
# - OPTIONAL - Can be omitted, has sensible defaults
# - DEV ONLY - Only for local development
#
# NOTE: This app uses TanStack Start (Vite), so client-side env vars
# must use the VITE_ prefix, not NEXT_PUBLIC_.
#
# ==============================================================================
# ==============================================================================
# REQUIRED: Convex (Backend Database & Realtime Sync)
# ==============================================================================
# Get these from: bunx convex dev (local) or your Convex dashboard (production)
# Convex stores ALL data: users, chats, messages, AND auth sessions
# Local Development
VITE_CONVEX_URL=http://localhost:3210
VITE_CONVEX_SITE_URL=http://localhost:3210
# Production Example (uncomment and modify):
# VITE_CONVEX_URL=https://your-project.convex.cloud
# VITE_CONVEX_SITE_URL=https://your-project.convex.site
# ==============================================================================
# REQUIRED: Better Auth (GitHub OAuth)
# ==============================================================================
# Create a GitHub OAuth App at: https://github.com/settings/developers
# Set callback URL to: {VITE_CONVEX_SITE_URL}/api/auth/callback/github
# These are set in Convex dashboard environment variables:
# AUTH_GITHUB_ID=your_github_client_id
# AUTH_GITHUB_SECRET=your_github_client_secret
# BETTER_AUTH_SECRET=generate_with_openssl_rand_base64_32
# ==============================================================================
# OPTIONAL: Vercel OAuth
# ==============================================================================
# Create a Vercel OAuth App at: https://vercel.com/account/oauth-apps
# Set callback URL to: {VITE_CONVEX_SITE_URL}/api/auth/callback/vercel
# These are set in Convex dashboard environment variables:
# VERCEL_CLIENT_ID=your_vercel_client_id
# VERCEL_CLIENT_SECRET=your_vercel_client_secret
# ==============================================================================
# OPTIONAL: AI Providers (Server-side)
# ==============================================================================
# OSSChat Cloud uses OpenRouter as the backend for all AI requests
# This enables free AI access with daily limits (10c/day) for all users
# Get API key from: https://openrouter.ai/settings/keys
# OPENROUTER_API_KEY=sk-or-v1-your-key-here
# Valyu API key for web search (20 searches/day free)
# Get API key from: https://valyu.network
# VALYU_API_KEY=your_valyu_key
# ==============================================================================
# OPTIONAL: Analytics (PostHog)
# ==============================================================================
# VITE_POSTHOG_KEY=your_posthog_key
# VITE_POSTHOG_HOST=https://us.i.posthog.com
# ==============================================================================
# OPTIONAL: Sentry (Error Monitoring, Tracing, Source Maps)
# ==============================================================================
# Public DSN for browser + server event ingestion
# VITE_SENTRY_DSN=https://publicKey@o0.ingest.us.sentry.io/projectId
# Optional server-only override if you don't want to reuse the VITE_ value
# SENTRY_DSN=https://publicKey@o0.ingest.us.sentry.io/projectId
# Optional tracing sample rate (0.0 - 1.0). Defaults to 0.1.
# VITE_SENTRY_TRACES_SAMPLE_RATE=0.1
# SENTRY_TRACES_SAMPLE_RATE=0.1
# Optional environment override. Defaults to production in prod builds.
# VITE_SENTRY_ENVIRONMENT=production
# SENTRY_ENVIRONMENT=production
# Optional PII capture toggle. Defaults to false.
# VITE_SENTRY_SEND_DEFAULT_PII=false
# SENTRY_SEND_DEFAULT_PII=false
# Optional tunnel override. Defaults to /api/monitoring
# VITE_SENTRY_TUNNEL=/api/monitoring
# SENTRY_TUNNEL=/api/monitoring
# Required only for source map upload during production builds
# SENTRY_AUTH_TOKEN=your_sentry_auth_token
# ==============================================================================
# OPTIONAL: Upstash Redis + QStash (Rate limiting, workflows, caching)
# ==============================================================================
# Get Redis credentials from: https://console.upstash.com/redis
# UPSTASH_REDIS_REST_URL=https://your-redis.upstash.io
# UPSTASH_REDIS_REST_TOKEN=your_redis_token_here
#
# Get QStash credentials from: https://console.upstash.com/qstash
# QSTASH_URL=https://qstash-us-east-1.upstash.io
# QSTASH_TOKEN=your_qstash_token_here
# QSTASH_CURRENT_SIGNING_KEY=sig_current_key_here
# QSTASH_NEXT_SIGNING_KEY=sig_next_key_here
#
# Protects maintenance workflow endpoints
# WORKFLOW_CLEANUP_TOKEN=generate_a_long_random_secret
# ==============================================================================
# DEV ONLY: Auth Bypass
# ==============================================================================
# WARNING: NEVER set these in production!
# VITE_DEV_BYPASS_AUTH=0
# VITE_DEV_USER_ID=dev-user