feat: new env variable for server URI

This commit is contained in:
2025-06-06 12:04:25 +02:00
parent 2b40e4e922
commit 83e3e5a2e9
7 changed files with 11 additions and 13 deletions

View File

@ -4,5 +4,4 @@ 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"`
}

View File

@ -12,6 +12,7 @@ import (
type AppConfig struct {
Port string `env:"GUARD_PORT" default:"3001"`
Host string `env:"GUARD_HOST" default:"127.0.0.1"`
Uri string `env:"GUARD_URI" default:"http://127.0.0.1:3001"`
DatabaseURL string `env:"GUARD_DB_URL" required:"true"`
Admin AdminConfig
Jwt JwtConfig