graceful 关闭服务器 (#1416)

This commit is contained in:
WeidiDeng
2022-08-22 19:49:19 +08:00
committed by GitHub
parent 96daed26b4
commit 846438e3af
5 changed files with 54 additions and 25 deletions

View File

@@ -3,7 +3,7 @@ package conf
import (
"github.com/cloudreve/Cloudreve/v3/pkg/util"
"github.com/go-ini/ini"
"gopkg.in/go-playground/validator.v9"
"github.com/go-playground/validator/v10"
)
// database 数据库
@@ -26,6 +26,7 @@ type system struct {
Debug bool
SessionSecret string
HashIDSalt string
GracePeriod int `validate:"gte=0"`
}
type ssl struct {