Files
yaoyaoai/.env.example
fengchuanhn@gmail.com 1325ff92e5 1
2026-05-18 18:40:03 +08:00

30 lines
1.1 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
APP_NAME=aiclient-api
DEBUG=true
# MySQLaiomysql
MYSQL_HOST=127.0.0.1
MYSQL_PORT=3306
MYSQL_USER=root
MYSQL_PASSWORD=
MYSQL_DATABASE=aiclient
# Redis
REDIS_URL=redis://127.0.0.1:6379/0
# JWT
SECRET_KEY=change-me-to-a-long-random-string
ACCESS_TOKEN_EXPIRE_MINUTES=10080
# API 传输 AES-256-GCM与 Tauri AICLIENT_API_AES_KEY 相同32 字节 Base64
# 生成示例: python -c "import os,base64; print(base64.b64encode(os.urandom(32)).decode())"
API_AES_KEY=98cde5e64ee0da6ed0c5842f43a950aa0d8ae5087c43c8d8ee5d10bd8d571bb4
# CORS逗号分隔* 表示允许全部)
CORS_ORIGINS=http://localhost:1420,tauri://localhost
# 桌面端配置写入 MySQL 表 desktop_configsname / value非本文件环境变量。
# 登录后 GET /api/v1/appConfig 返回全部键值Tauri 注入 Node 环境变量 AICLIENT_CFG_<NAME>。
# 示例键名LLM_API_KEY、LLM_API_URL、LLM_MODEL_ID、ASR_MODE、DASHSCOPE_API_KEY、OSS_CONFIGJSON等。
# 口播视频VIDEO_GEN_MODE=online|local|gradioonline 时需 RUNNINGHUB_API_KEY、RUNNINGHUB_WORKFLOW_ID
# 可选 RUNNINGHUB_BASE_URL、RUNNINGHUB_INSTANCE_TYPE、RUNNINGHUB_NODESJSON