mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-09-19 09:40:12 +00:00
feat: server transfer rotation
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package singleton
|
||||
|
||||
import (
|
||||
"log"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
@@ -26,6 +27,13 @@ func InitConfigFromPath(path string) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
rotated, err := Conf.RotateJWTSecretKeyIfNeeded(Version)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if rotated {
|
||||
log.Printf("NEZHA>> Rotated jwt_secret_key for dashboard version %s", Version)
|
||||
}
|
||||
|
||||
Conf.updateIgnoredIPNotificationID()
|
||||
Conf.Oauth2Providers = utils.MapKeysToSlice(Conf.Oauth2)
|
||||
|
||||
Reference in New Issue
Block a user