mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 10:17:17 +08:00
feat: 将session超时写入主配置
This commit is contained in:
@@ -5,6 +5,7 @@ type PanelConfig struct {
|
||||
App PanelAppConfig `yaml:"app"`
|
||||
HTTP PanelHTTPConfig `yaml:"http"`
|
||||
Database PanelDatabaseConfig `yaml:"database"`
|
||||
Session PanelSessionConfig `yaml:"session"`
|
||||
}
|
||||
|
||||
type PanelAppConfig struct {
|
||||
@@ -25,3 +26,7 @@ type PanelHTTPConfig struct {
|
||||
type PanelDatabaseConfig struct {
|
||||
Debug bool `yaml:"debug"`
|
||||
}
|
||||
|
||||
type PanelSessionConfig struct {
|
||||
Lifetime uint `yaml:"lifetime"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user