Support downloading resources from CDN server
Signed-off-by: Yuan Si <do4suki@gmail.com>
This commit is contained in:
@@ -18,6 +18,7 @@ type AppConfigs struct {
|
||||
Server ServerConfigs `yaml:"server"`
|
||||
Log LogConfigs `yaml:"log"`
|
||||
LevelDb LevelDbConfigs `yaml:"leveldb"`
|
||||
Cdn CdnConfigs `yaml:"cdn"`
|
||||
}
|
||||
|
||||
type ServerConfigs struct {
|
||||
@@ -37,6 +38,10 @@ type LevelDbConfigs struct {
|
||||
DataPath string `yaml:"data_path"`
|
||||
}
|
||||
|
||||
type CdnConfigs struct {
|
||||
CdnUrl string `yaml:"cdn_url"`
|
||||
}
|
||||
|
||||
func DefaultConfigs() *AppConfigs {
|
||||
return &AppConfigs{
|
||||
AppName: "LL! SIF Private Server",
|
||||
@@ -54,6 +59,9 @@ func DefaultConfigs() *AppConfigs {
|
||||
LevelDb: LevelDbConfigs{
|
||||
DataPath: "./data/honoka-chan.db",
|
||||
},
|
||||
Cdn: CdnConfigs{
|
||||
CdnUrl: "",
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user