feat: smart config

This commit is contained in:
2025-05-25 16:18:21 +02:00
parent 4df7561dd3
commit e8bad71f21
4 changed files with 120 additions and 0 deletions

8
internal/config/jwt.go Normal file
View File

@ -0,0 +1,8 @@
package config
type JwtConfig struct {
PrivateKey string `env:"GUARD_JWT_PRIVATE" required:"true"`
PublicKey string `env:"GUARD_JWT_PUBLIC" required:"true"`
KID string `env:"GUARD_JWT_KID" default:"guard-rsa"`
Issuer string `env:"GUARD_JWT_ISSUER" required:"true"`
}