mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-09-20 12:46:17 +08:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
1d3b86985f | |||
c711ba53a3 |
@ -28,8 +28,8 @@ type Config struct {
|
|||||||
Address string `json:"address" env:"ADDR"`
|
Address string `json:"address" env:"ADDR"`
|
||||||
Port int `json:"port" env:"PORT"`
|
Port int `json:"port" env:"PORT"`
|
||||||
Assets string `json:"assets" env:"ASSETS"`
|
Assets string `json:"assets" env:"ASSETS"`
|
||||||
LocalAssets string `json:"localassets" env:"LOCALASSETS"`
|
LocalAssets string `json:"local_assets" env:"LOCAL_ASSETS"`
|
||||||
SubFolder string `json:"subfolder" env:"SUBFOLDER"`
|
SubFolder string `json:"sub_folder" env:"SUB_FOLDER"`
|
||||||
Database Database `json:"database"`
|
Database Database `json:"database"`
|
||||||
Scheme Scheme `json:"scheme"`
|
Scheme Scheme `json:"scheme"`
|
||||||
Cache CacheConfig `json:"cache"`
|
Cache CacheConfig `json:"cache"`
|
||||||
@ -40,7 +40,7 @@ func DefaultConfig() *Config {
|
|||||||
return &Config{
|
return &Config{
|
||||||
Address: "0.0.0.0",
|
Address: "0.0.0.0",
|
||||||
Port: 5244,
|
Port: 5244,
|
||||||
Assets: "https://npm.elemecdn.com/alist-web@$version/dist",
|
Assets: "/",
|
||||||
SubFolder: "",
|
SubFolder: "",
|
||||||
LocalAssets: "",
|
LocalAssets: "",
|
||||||
TempDir: "data/temp",
|
TempDir: "data/temp",
|
||||||
|
Reference in New Issue
Block a user