mirror of https://github.com/Xhofe/alist
🔧 change default cdn
parent
fea8b376f8
commit
ccaa28a323
|
@ -35,7 +35,7 @@ func DefaultConfig() *Config {
|
||||||
return &Config{
|
return &Config{
|
||||||
Address: "0.0.0.0",
|
Address: "0.0.0.0",
|
||||||
Port: 5244,
|
Port: 5244,
|
||||||
Assets: "jsdelivr",
|
Assets: "",
|
||||||
Database: Database{
|
Database: Database{
|
||||||
Type: "sqlite3",
|
Type: "sqlite3",
|
||||||
Port: 0,
|
Port: 0,
|
||||||
|
|
|
@ -21,7 +21,7 @@ func InitIndex() {
|
||||||
// index, err = public.Public.Open("index.html")
|
// index, err = public.Public.Open("index.html")
|
||||||
//}
|
//}
|
||||||
if conf.Conf.Assets == "" {
|
if conf.Conf.Assets == "" {
|
||||||
conf.Conf.Assets = "jsdelivr"
|
conf.Conf.Assets = conf.DefaultConfig().Assets
|
||||||
}
|
}
|
||||||
index, err = public.Public.Open(fmt.Sprintf("%s.html", conf.Conf.Assets))
|
index, err = public.Public.Open(fmt.Sprintf("%s.html", conf.Conf.Assets))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue