Files
excel-api/config.yaml
2026-06-26 14:31:24 +08:00

43 lines
1.2 KiB
YAML
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.
# 应用配置文件
# 本文件用于配置数据库连接、文件存储、服务器端口等
# 服务器配置
server:
port: 16702 # 后端API服务端口与前端Vite代理配置保持一致
ws_port: 16703 # WebSocket服务端口独立端口用于在线协作
# 数据库配置MySQL 8+
database:
host: "127.0.0.1" # 数据库主机地址
port: 3306 # 数据库端口
username: "root" # 数据库用户名
password: "123456" # 数据库密码
dbname: "excel_t" # 数据库名称
charset: "utf8mb4" # 字符集
# 文件存储配置
storage:
# 存储类型local本地磁盘/ qiniu七牛云/ tencent腾讯云/ aliyun阿里云
type: "local"
# 本地存储配置
local:
path: "./uploads" # 本地文件存储目录
# 七牛云配置storage.type 为 qiniu 时生效)
qiniu:
access_key: ""
secret_key: ""
bucket: ""
domain: ""
# 腾讯云配置storage.type 为 tencent 时生效)
tencent:
secret_id: ""
secret_key: ""
bucket: ""
region: ""
# 阿里云配置storage.type 为 aliyun 时生效)
aliyun:
access_key_id: ""
access_key_secret: ""
bucket: ""
endpoint: ""