修改后端初始化

This commit is contained in:
2025-10-04 20:48:50 +08:00
parent 2dea178fde
commit 2afbafa192
13 changed files with 289 additions and 146 deletions

22
server/config/config.yaml Normal file
View File

@@ -0,0 +1,22 @@
server:
port: 8080
allowed_origins: ["http://localhost:5173"]
oss:
endpoint: "https://oss-cn-shenzhen.aliyuncs.com"
bucket_name: "hldr-data"
access_key_id: "LTAI5tMTSfbaaAtYBS2gFkf9"
access_key_secret: "dHfxH4XziDO0C8ppN94kbLUREAw1Dc"
object_prefix: "article/"
mysql:
host: "localhost"
port: 3306
username: "root"
password: "your_mysql_password"
database: "article_db"
charset: "utf8mb4"
upload:
allow_image_types: "image/jpeg,image/png,image/gif,image/webp"
max_file_size: 5242880 # 5MB (5 * 1024 * 1024)