mirror of
https://github.com/yv1ing/MollyBlog.git
synced 2025-09-16 14:53:45 +08:00
new: Automatically pull Markdown files from Tencent Cloud COS
This commit is contained in:
@@ -9,9 +9,10 @@ import (
|
||||
)
|
||||
|
||||
type MConfig struct {
|
||||
Host string `yaml:"host"`
|
||||
Port int `yaml:"port"`
|
||||
Template string `yaml:"template"`
|
||||
Host string `yaml:"host"`
|
||||
Port int `yaml:"port"`
|
||||
Storage mStorage `yaml:"storage"`
|
||||
Template string `yaml:"template"`
|
||||
|
||||
MSite mSite `yaml:"site"`
|
||||
}
|
||||
|
||||
17
config/mStorage.go
Normal file
17
config/mStorage.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package config
|
||||
|
||||
type mStorage struct {
|
||||
SRC string `yaml:"src"`
|
||||
DST string `yaml:"dst"`
|
||||
Type string `yaml:"type"`
|
||||
COS cosConfig `yaml:"cos"`
|
||||
}
|
||||
|
||||
type cosConfig struct {
|
||||
Appid string `yaml:"appid"`
|
||||
Bucket string `yaml:"bucket"`
|
||||
Region string `yaml:"region"`
|
||||
SecretId string `yaml:"secret_id"`
|
||||
SecretKey string `yaml:"secret_key"`
|
||||
SavePath string `yaml:"save_path"`
|
||||
}
|
||||
Reference in New Issue
Block a user