mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-18 18:16:26 +00:00
Move jwt keys to database
Moved code for it to one place Updated to chi v5
This commit is contained in:
@ -14,6 +14,7 @@ import (
|
||||
"npm/internal/entity/user"
|
||||
"npm/internal/errors"
|
||||
"npm/internal/jobqueue"
|
||||
"npm/internal/jwt"
|
||||
"npm/internal/logger"
|
||||
)
|
||||
|
||||
@ -26,6 +27,11 @@ func main() {
|
||||
config.Init(&version, &commit, &sentryDSN)
|
||||
|
||||
database.Migrate(func() {
|
||||
if err := jwt.LoadKeys(); err != nil {
|
||||
logger.Error("KeysError", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
setting.ApplySettings()
|
||||
checkSetup()
|
||||
|
||||
|
Reference in New Issue
Block a user