mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-22 16:28:30 +02:00
go version and deps update, fixed middlewares and metrics
- fixed "API JWT secret empty" warning output format - fixed metrics initialized when it should not - fixed middlewares.modifyRequest Host header not working properly
This commit is contained in:
@@ -48,12 +48,6 @@ var (
|
||||
APIPasswordHash = HashPassword(GetEnvString("API_PASSWORD", "password"))
|
||||
)
|
||||
|
||||
func init() {
|
||||
if APIJWTSecret == nil && GetArgs().Command == CommandStart {
|
||||
log.Warn().Msg("API JWT secret is empty, authentication is disabled")
|
||||
}
|
||||
}
|
||||
|
||||
func GetEnv[T any](key string, defaultValue T, parser func(string) (T, error)) T {
|
||||
var value string
|
||||
var ok bool
|
||||
|
||||
Reference in New Issue
Block a user