-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy path.env.example
More file actions
62 lines (45 loc) · 2.1 KB
/
.env.example
File metadata and controls
62 lines (45 loc) · 2.1 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
# 本地覆盖配置请复制 config.example.json 为 config.json。
# config.json 和 data/ 可能包含密钥、账号、日志和运行数据,必须保持未提交。
# ============================================
# WebChat2API 环境变量配置示例
# ============================================
# 管理端默认登录密钥(本地测试默认值:admin)
# 生产环境请修改为强随机密钥。
LOGIN_SECRET=admin
# 兼容旧配置:也可以使用 WEBCHAT2API_AUTH_KEY 覆盖登录密钥。
# WEBCHAT2API_AUTH_KEY=your_strong_secret_here
# 基础 URL(可选,用于生成图片 URL)
# WEBCHAT2API_BASE_URL=https://your-domain.com
# 上游代理(可选,支持 HTTP、HTTPS、SOCKS5、SOCKS5H)
# PROXY_URL=http://host.docker.internal:7890
# Browser Bridge(可选,Docker 默认已设置)
# BRIDGE_PORT=3080
# CHROMIUM_PATH=/usr/bin/chromium
# ============================================
# 存储后端配置
# ============================================
# 存储后端类型(可选值: json, sqlite, postgres, git)
# 默认: json
STORAGE_BACKEND=json
# ============================================
# 数据库配置(当 STORAGE_BACKEND=sqlite/postgres 时使用)
# ============================================
# PostgreSQL 示例
# DATABASE_URL=postgresql://user:password@localhost:5432/webchat2api
# Supabase 示例
# DATABASE_URL=postgresql://postgres.xxx:password@aws-1-us-west-1.pooler.supabase.com:5432/postgres
# SQLite 示例(不指定时自动使用 data/accounts.db)
# DATABASE_URL=sqlite:///app/data/accounts.db
# ============================================
# Git 仓库配置(当 STORAGE_BACKEND=git 时使用)
# ============================================
# Git 仓库地址(必填)
# GIT_REPO_URL=https://github.com/your-username/your-private-repo.git
# Git 访问令牌(必填)
# GitHub: ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# GitLab: glpat-xxxxxxxxxxxxxxxxxxxx
# GIT_TOKEN=your_git_token_here
# Git 分支(可选,默认: main)
# GIT_BRANCH=main
# Git 仓库中的文件路径(可选,默认: accounts.json)
# GIT_FILE_PATH=accounts.json