Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
54 lines (45 loc) · 2.07 KB
/
Copy path.env.example
File metadata and controls
54 lines (45 loc) · 2.07 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
# 9Router environment contract
# This file reflects actual runtime usage in the current codebase.
# Required
JWT_SECRET=change-me-to-a-long-random-secret
INITIAL_PASSWORD=change-me
DATA_DIR=/var/lib/9router
# Recommended runtime variables
PORT=20128
NODE_ENV=production
# Recommended security and ops variables
API_KEY_SECRET=endpoint-proxy-api-key-secret
MACHINE_ID_SALT=endpoint-proxy-salt
ENABLE_REQUEST_LOGS=false
OBSERVABILITY_ENABLED=true
AUTH_COOKIE_SECURE=false
REQUIRE_API_KEY=false
# Optional Google OAuth clients for Gemini CLI and Antigravity integrations.
# Keep these values private; OAuth flows remain unavailable when unset.
# RCROUTER_GOOGLE_OAUTH_CLIENT_ID=
# RCROUTER_GOOGLE_OAUTH_CLIENT_SECRET=
# RCROUTER_ANTIGRAVITY_OAUTH_CLIENT_ID=
# RCROUTER_ANTIGRAVITY_OAUTH_CLIENT_SECRET=
# Cloud sync variables
# Must point to this running instance so internal sync jobs can call /api/sync/cloud.
# Server-side preferred variables:
BASE_URL=http://localhost:20128
CLOUD_URL=https://9router.com
# Backward-compatible/public variables:
NEXT_PUBLIC_BASE_URL=http://localhost:20128
NEXT_PUBLIC_CLOUD_URL=https://9router.com
# Optional outbound proxy variables for upstream provider calls
# Lowercase variants are also supported: http_proxy, https_proxy, all_proxy, no_proxy
# HTTP_PROXY=http://127.0.0.1:7890
# HTTPS_PROXY=http://127.0.0.1:7890
# ALL_PROXY=socks5://127.0.0.1:7890
# NO_PROXY=localhost,127.0.0.1
# Optional SearXNG endpoint for the built-in unauthenticated web-search provider.
# SEARXNG_URL=http://searxng:8080/search
# Request body ceilings for /v1 entry points (HTTP 413 "request_entity_too_large" before parsing).
# Positive integers in bytes; invalid values fall back to the defaults.
# MAX_REQUEST_BODY_BYTES=67108864 # JSON bodies (chat, messages, responses, embeddings, ...), default 64 MiB
# MAX_UPLOAD_BODY_BYTES=134217728 # multipart / binary uploads (STT, video edits), default 128 MiB
# Keep NINEROUTER_PROXY_CLIENT_MAX_BODY_SIZE (default 128mb) at or above the larger of the two.
# Currently unused by application runtime (kept as reference)
# INSTANCE_NAME=9router