-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy path.env.example
More file actions
44 lines (34 loc) · 1.54 KB
/
Copy path.env.example
File metadata and controls
44 lines (34 loc) · 1.54 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
# =============================================================
# Nexus 配置文件
# 使用方法: cp .env.example .env
# 默认值已填好,可直接启动。生产环境请务必修改密码和密钥。
# =============================================================
# JWT 签名密钥
# ⚠️ 生产环境请替换:openssl rand -hex 32
JWT_SECRET=fcea4c5c28bee4c9fa7adca25c947f87b2a7179202c824d185618d3b3bf2a333
# 登录密码的 bcrypt hash
# 默认密码: nexus123
# ⚠️ 生产环境请替换(生成新 hash):
# node -e "const b=require('bcrypt');b.hash('yourpassword',12).then(h=>console.log(h))"
ACC_PASSWORD_HASH=$2b$12$5xRyI8a3yVhcCHqYP/Pdju/mKjxtxjWihXE1VpaXCdnuM6VUVNUsW
# 要 attach 的 tmux session 名(不存在会自动创建)
TMUX_SESSION=main
# 工作区根目录(Claude 能访问的文件系统路径)
# 改为你实际的工作目录,例如 /home/yourname/work 或 /root
WORKSPACE_ROOT=/home
# 服务监听端口
PORT=59000
# Claude 启动时注入的代理(用于访问 Anthropic API,不需要则留空)
# 格式: http://host:port
CLAUDE_PROXY=
# Telegram Bot Token(可选)
# 获取方式: @BotFather → /newbot → 复制 token
TELEGRAM_BOT_TOKEN=
# Telegram Webhook Secret(可选,用于验证 Telegram 来源)
# 生成: openssl rand -hex 16
TELEGRAM_WEBHOOK_SECRET=
# Telegram 默认使用的 tmux 窗口名(留空则使用第一个窗口)
TELEGRAM_DEFAULT_SESSION=
# GitHub 仓库(用于检查更新),格式: owner/repo
# Fork 用户改为自己的 repo
GITHUB_REPO=librae8226/nexus4cc