-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
35 lines (27 loc) · 943 Bytes
/
.env.example
File metadata and controls
35 lines (27 loc) · 943 Bytes
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
# EchoAI environment variables
#
# Copy this file to .env and fill values as needed.
# =======================
# Next.js built-in server proxy
# =======================
# These variables are consumed by app/api/openai/* routes.
OPENAI_BASE_URL=https://ai.shuaihong.fun/v1
OPENAI_API_KEY=
# =======================
# Server (Express proxy) - optional
# =======================
PORT=3001
# IMPORTANT: set a stable secret in production (otherwise tokens invalidate on restart)
JWT_SECRET=
# Upstream OpenAI-compatible endpoint
API_URL=https://ai.shuaihong.fun/v1/chat/completions
# Upstream API key
API_KEY=
# Trust proxy hops only when you are behind a trusted reverse proxy.
# Example: TRUST_PROXY=1
TRUST_PROXY=false
# CORS allowlist, comma-separated. Example:
# ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
# Protect admin endpoints (/api/admin/*)
ADMIN_KEY=