forked from 819557056/gemini-business2api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
36 lines (31 loc) · 1.32 KB
/
.env.example
File metadata and controls
36 lines (31 loc) · 1.32 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
# ============================================
# Gemini Business2API 配置示例
# ============================================
# 管理员密钥(必需,用于登录管理面板)
# 明文示例:
ADMIN_KEY=your-admin-secret-key
# 服务端口(可选,默认 7860)
# PORT=7860
# ============================================
# 数据库配置(可选,用于无持久化存储的环境如 HF Spaces)
# ============================================
# 支持 PostgreSQL 数据库存储(账户/设置/统计)
# 未设置时使用本地文件存储(原有行为)
#
# 示例(Neon PostgreSQL):
# DATABASE_URL=postgresql://user:password@ep-xxx.aws.neon.tech/dbname?sslmode=require
#
# 注意:使用数据库存储需要安装 asyncpg:pip install asyncpg
# DATABASE_URL=
# ============================================
# 其他配置请在管理面板的"系统设置"中配置
# 包括:API密钥、代理、图片生成、重试策略等
# 配置保存在 data/settings.yaml
# ============================================
# ============================================
# 账户配置
# ============================================
# 使用 accounts.json 文件
# 账户配置保存在 accounts.json 文件中
# 首次启动时会自动创建空配置
# 请在管理面板中添加账户,或直接编辑 accounts.json