🔧 change config

This commit is contained in:
微凉
2022-01-14 20:10:35 +08:00
parent 55d244b726
commit fea8b376f8
4 changed files with 14 additions and 8 deletions

View File

@ -25,7 +25,7 @@ type CacheConfig struct {
type Config struct {
Address string `json:"address"`
Port int `json:"port"`
Local bool `json:"local"`
Assets string `json:"assets"`
Database Database `json:"database"`
Scheme Scheme `json:"scheme"`
Cache CacheConfig `json:"cache"`
@ -35,6 +35,7 @@ func DefaultConfig() *Config {
return &Config{
Address: "0.0.0.0",
Port: 5244,
Assets: "jsdelivr",
Database: Database{
Type: "sqlite3",
Port: 0,