2026-05-24 20:44:53 +08:00
|
|
|
# gen2d backend configuration
|
|
|
|
|
# 敏感信息(api_key)请通过环境变量设置,不要直接写在文件中提交。
|
|
|
|
|
|
|
|
|
|
server:
|
|
|
|
|
port: 8080
|
|
|
|
|
mode: debug
|
|
|
|
|
max_file_size: 10485760 # 10MB
|
|
|
|
|
|
2026-05-25 14:30:35 +08:00
|
|
|
log:
|
|
|
|
|
level: info # debug / info / warn / error
|
|
|
|
|
format: text # text / json
|
|
|
|
|
|
2026-05-24 20:44:53 +08:00
|
|
|
database:
|
|
|
|
|
dsn: "data/gen2d.db"
|
|
|
|
|
|
|
|
|
|
jwt:
|
|
|
|
|
secret: "gen2d-dev-secret"
|
|
|
|
|
expire: 7200
|
|
|
|
|
|
|
|
|
|
llm:
|
|
|
|
|
base_url: "https://api.deepseek.com/v1"
|
|
|
|
|
api_key: ""
|
|
|
|
|
model: "deepseek-v4-pro"
|
|
|
|
|
temperature: 0.7
|
|
|
|
|
max_tokens: 2048
|
|
|
|
|
|
|
|
|
|
image_gen:
|
2026-05-25 14:08:08 +08:00
|
|
|
base_url: ""
|
2026-05-24 20:44:53 +08:00
|
|
|
api_key: ""
|
2026-05-25 14:08:08 +08:00
|
|
|
model: ""
|
2026-05-25 13:17:57 +08:00
|
|
|
width: 1024
|
|
|
|
|
height: 1024
|
2026-05-25 12:44:39 +08:00
|
|
|
quality: "low"
|
2026-05-25 19:05:55 +08:00
|
|
|
|
|
|
|
|
qiniu:
|
|
|
|
|
access_key: ""
|
|
|
|
|
secret_key: ""
|
|
|
|
|
bucket: ""
|
|
|
|
|
cdn_host: ""
|
|
|
|
|
use_https: true
|
|
|
|
|
url_expire: 3600 # 私有下载签名 URL 有效期(秒)
|