mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-25 02:21:05 +01:00
enable auth by default with temporary random JWT
This commit is contained in:
@@ -82,7 +82,11 @@ func main() {
|
||||
homepage.InitOverridesConfig,
|
||||
favicon.InitIconCache,
|
||||
)
|
||||
// logging.AddHook(notif.GetDispatcher())
|
||||
|
||||
if common.APIJWTSecret == nil {
|
||||
logging.Warn().Msg("API_JWT_SECRET is not set, using random key")
|
||||
common.APIJWTSecret = common.RandomJWTKey()
|
||||
}
|
||||
} else {
|
||||
logging.DiscardLogger()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user