修改后端初始化
This commit is contained in:
22
server/config/config.yaml
Normal file
22
server/config/config.yaml
Normal 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)
|
||||
Reference in New Issue
Block a user