summarylogtreecommitdiffstats
path: root/.env.example
blob: 9c21b9707e9ebb84b006270112e97ea9018f27de (plain)
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
# Copy this file to:
#   ~/.9router/.env
#
# This is read by the packaged systemd user service as an EnvironmentFile.
# EnvironmentFile values do NOT expand shell variables like $HOME — use
# absolute paths if you need to override path-valued variables.
#
# Variables here mirror the upstream .env.example contract from
# https://github.com/decolua/9router/blob/master/.env.example

# --- Required (set these before exposing the dashboard) ---
JWT_SECRET=
INITIAL_PASSWORD=123456

# DATA_DIR defaults to ~/.9router (computed from $HOME by the CLI itself).
# Override only if you need a different absolute path.
# DATA_DIR=/var/lib/9router

# --- Recommended runtime ---
# PORT=20128
# NODE_ENV=production

# --- Recommended security and ops ---
# 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

# --- Cloud sync (point BASE_URL at this running instance) ---
# BASE_URL=http://localhost:20128
# CLOUD_URL=https://9router.com
# Backward-compatible/public variants:
# NEXT_PUBLIC_BASE_URL=http://localhost:20128
# NEXT_PUBLIC_CLOUD_URL=https://9router.com

# --- Outbound proxy for upstream provider calls (lowercase variants also work) ---
# 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