feat: new env variable for server URI
This commit is contained in:
@ -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"`
|
||||
}
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user