Skip to content

Commit

Permalink
fix!: change default assets to local
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Jul 22, 2022
1 parent 532a326 commit c711ba5
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions conf/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,26 @@ type CacheConfig struct {
}

type Config struct {
Force bool `json:"force"`
Address string `json:"address" env:"ADDR"`
Port int `json:"port" env:"PORT"`
Assets string `json:"assets" env:"ASSETS"`
LocalAssets string `json:"localassets" env:"LOCALASSETS"`
SubFolder string `json:"subfolder" env:"SUBFOLDER"`
Database Database `json:"database"`
Scheme Scheme `json:"scheme"`
Cache CacheConfig `json:"cache"`
TempDir string `json:"temp_dir" env:"TEMP_DIR"`
Force bool `json:"force"`
Address string `json:"address" env:"ADDR"`
Port int `json:"port" env:"PORT"`
Assets string `json:"assets" env:"ASSETS"`
LocalAssets string `json:"localassets" env:"LOCALASSETS"`
SubFolder string `json:"subfolder" env:"SUBFOLDER"`
Database Database `json:"database"`
Scheme Scheme `json:"scheme"`
Cache CacheConfig `json:"cache"`
TempDir string `json:"temp_dir" env:"TEMP_DIR"`
}

func DefaultConfig() *Config {
return &Config{
Address: "0.0.0.0",
Port: 5244,
Assets: "https://npm.elemecdn.com/alist-web@$version/dist",
SubFolder: "",
Address: "0.0.0.0",
Port: 5244,
Assets: "/",
SubFolder: "",
LocalAssets: "",
TempDir: "data/temp",
TempDir: "data/temp",
Database: Database{
Type: "sqlite3",
Port: 0,
Expand Down

0 comments on commit c711ba5

Please sign in to comment.