chore: remove useless ini
This commit is contained in:
@@ -10,7 +10,3 @@ user = root
|
|||||||
password =
|
password =
|
||||||
dbname = ql_panel
|
dbname = ql_panel
|
||||||
table_prefix = baihu_
|
table_prefix = baihu_
|
||||||
|
|
||||||
[task]
|
|
||||||
default_timeout = 3600
|
|
||||||
log_retention_days = 30
|
|
||||||
|
|||||||
@@ -26,16 +26,10 @@ type SecurityConfig struct {
|
|||||||
Secret string `ini:"secret"`
|
Secret string `ini:"secret"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type TaskConfig struct {
|
|
||||||
DefaultTimeout int `ini:"default_timeout"`
|
|
||||||
LogRetentionDays int `ini:"log_retention_days"`
|
|
||||||
}
|
|
||||||
|
|
||||||
type AppConfig struct {
|
type AppConfig struct {
|
||||||
Server ServerConfig `ini:"server"`
|
Server ServerConfig `ini:"server"`
|
||||||
Database DatabaseConfig `ini:"database"`
|
Database DatabaseConfig `ini:"database"`
|
||||||
Security SecurityConfig `ini:"security"`
|
Security SecurityConfig `ini:"security"`
|
||||||
Task TaskConfig `ini:"task"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var Config *AppConfig
|
var Config *AppConfig
|
||||||
|
|||||||
Reference in New Issue
Block a user