Add backup CDN server

Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
2025-08-15 19:31:06 +08:00
parent 80a686849f
commit c873f224fa
3 changed files with 32 additions and 38 deletions
+6 -4
View File
@@ -24,8 +24,9 @@ type AppConfigs struct {
}
type Settings struct {
ListenPort string `json:"listen_port"`
SifCdnServer string `json:"sif_cdn_server"`
ListenPort string `json:"listen_port"`
CdnServer string `json:"cdn_server"`
BackupCdnServer string `json:"backup_cdn_server"`
}
type UserPrefs struct {
@@ -48,8 +49,9 @@ func DefaultConfigs() *AppConfigs {
return &AppConfigs{
AppName: "honoka-chan",
Settings: Settings{
ListenPort: "80",
SifCdnServer: "http://192.168.1.123/static",
ListenPort: "8080",
CdnServer: "http://192.168.1.123/static",
BackupCdnServer: "http://192.168.1.123/static",
},
UserPrefs: UserPrefs{
Name: "梦路 @bilibili",