improve backward compatibility with dcwebui2 config files
This commit is contained in:
parent
2047762e62
commit
ee59a4a773
22
Config.go
22
Config.go
@ -2,22 +2,22 @@ package main
|
|||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
App struct {
|
App struct {
|
||||||
Name string
|
Name string `json:"name"`
|
||||||
Version string
|
Version string `json:"version"`
|
||||||
MotdHTML string
|
MotdHTML string `json:"motd"`
|
||||||
Debug bool
|
Debug bool `json:"debug"`
|
||||||
}
|
}
|
||||||
|
|
||||||
Web struct {
|
Web struct {
|
||||||
Port int
|
Port int `json:"port"`
|
||||||
BindTo string
|
BindTo string `json:"bind_to"`
|
||||||
Extern string
|
Extern string `json:"extern"`
|
||||||
Title string
|
Title string `json:"title"`
|
||||||
}
|
}
|
||||||
|
|
||||||
Hub struct {
|
Hub struct {
|
||||||
Address string
|
Address string `json:"address"`
|
||||||
Port int
|
Port int `json:"port"`
|
||||||
Tag string
|
Tag string `json:"tag"`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user