配置说明
本文档介绍如何配置 PveSphere 系统。
后端配置
后端配置文件位于 config/ 目录,支持以下环境:
local.yml- 本地开发环境docker.yml- Docker 环境prod.yml- 生产环境
数据库配置
database:
driver: mysql # mysql, postgres, sqlite
host: localhost
port: 3306
database: pvesphere
username: root
password: your_password
charset: utf8mb4
Redis 配置(可选)
redis:
host: localhost
port: 6379
password: ""
db: 0
JWT 配置
jwt:
secret: your-secret-key
expire: 720h # token 过期时间