Fix wrong env keys in config.go

This commit is contained in:
Mike Schwörer 2022-12-14 18:43:32 +01:00
parent 03b4acd13e
commit 97fc9319d1
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF

View File

@ -30,17 +30,17 @@ type Config struct {
ReturnRawErrors bool `env:"SCN_ERROR_RETURN"` ReturnRawErrors bool `env:"SCN_ERROR_RETURN"`
DummyFirebase bool `env:"SCN_DUMMY_FB"` DummyFirebase bool `env:"SCN_DUMMY_FB"`
DummyGoogleAPI bool `env:"SCN_DUMMY_GOOG"` DummyGoogleAPI bool `env:"SCN_DUMMY_GOOG"`
FirebaseTokenURI string FirebaseTokenURI string `env:"FB_TOKENURI"`
FirebaseProjectID string FirebaseProjectID string `env:"FB_PROJECTID"`
FirebasePrivKeyID string FirebasePrivKeyID string `env:"FB_PRIVATEKEYID"`
FirebaseClientMail string FirebaseClientMail string `env:"FB_CLIENTEMAIL"`
FirebasePrivateKey string FirebasePrivateKey string `env:"FB_PRIVATEKEY"`
GoogleAPITokenURI string GoogleAPITokenURI string `env:"GOOG_TOKENURI"`
GoogleAPIPrivKeyID string GoogleAPIPrivKeyID string `env:"GOOG_PRIVATEKEYID"`
GoogleAPIClientMail string GoogleAPIClientMail string `env:"GOOG_CLIENTEMAIL"`
GoogleAPIPrivateKey string GoogleAPIPrivateKey string `env:"GOOG_PRIVATEKEY"`
GooglePackageName string GooglePackageName string `env:"GOOG_PACKAGENAME"`
GoogleProProductID string GoogleProProductID string `env:"GOOG_PROPRODUCTID"`
} }
var Conf Config var Conf Config
@ -116,7 +116,7 @@ var configLocDocker = func() Config {
var configDev = func() Config { var configDev = func() Config {
return Config{ return Config{
Namespace: "develop", Namespace: "develop",
BaseURL: confEnv("BASE_URL"), BaseURL: confEnv("SCN_URL"),
GinDebug: true, GinDebug: true,
LogLevel: zerolog.DebugLevel, LogLevel: zerolog.DebugLevel,
ServerIP: "0.0.0.0", ServerIP: "0.0.0.0",
@ -150,7 +150,7 @@ var configDev = func() Config {
var configStag = func() Config { var configStag = func() Config {
return Config{ return Config{
Namespace: "staging", Namespace: "staging",
BaseURL: confEnv("BASE_URL"), BaseURL: confEnv("SCN_URL"),
GinDebug: true, GinDebug: true,
LogLevel: zerolog.DebugLevel, LogLevel: zerolog.DebugLevel,
ServerIP: "0.0.0.0", ServerIP: "0.0.0.0",