From 24ce212f919e0dc24edaafaeddd6130d10746e4d Mon Sep 17 00:00:00 2001 From: lulistart Date: Wed, 18 Feb 2026 03:00:50 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=87=8D=E5=91=BD=E5=90=8D.env.exa?= =?UTF-8?q?=E4=B8=BA.env.example=E4=BD=9C=E4=B8=BA=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 18 ++++++++++++++++++ .gitignore | 1 - 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..8db8cbf --- /dev/null +++ b/.env.example @@ -0,0 +1,18 @@ +# 服务器端口 +PORT=3000 + +# Token 文件路径 +TOKEN_FILE=./token.json + +# 模型列表文件路径 +MODELS_FILE=./models.json + +# HTTP 代理(可选,用于 token 刷新) +# HTTP_PROXY=http://127.0.0.1:7890 +# HTTPS_PROXY=http://127.0.0.1:7890 + +# 负载均衡策略(可选) +# round-robin: 轮询(默认) +# random: 随机选择 +# least-used: 最少使用(选择请求次数最少的账号) +LOAD_BALANCE_STRATEGY=round-robin diff --git a/.gitignore b/.gitignore index b6c93ed..a6be11a 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,5 @@ token.json *.log .DS_Store database/app.db -.env.exa plans/ UI.md