From 97fc9319d1640564da63602eeb1da02475d32327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Wed, 14 Dec 2022 18:43:32 +0100 Subject: [PATCH] Fix wrong env keys in config.go --- server/config.go | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/server/config.go b/server/config.go index fcb6516..c6c8562 100644 --- a/server/config.go +++ b/server/config.go @@ -30,17 +30,17 @@ type Config struct { ReturnRawErrors bool `env:"SCN_ERROR_RETURN"` DummyFirebase bool `env:"SCN_DUMMY_FB"` DummyGoogleAPI bool `env:"SCN_DUMMY_GOOG"` - FirebaseTokenURI string - FirebaseProjectID string - FirebasePrivKeyID string - FirebaseClientMail string - FirebasePrivateKey string - GoogleAPITokenURI string - GoogleAPIPrivKeyID string - GoogleAPIClientMail string - GoogleAPIPrivateKey string - GooglePackageName string - GoogleProProductID string + FirebaseTokenURI string `env:"FB_TOKENURI"` + FirebaseProjectID string `env:"FB_PROJECTID"` + FirebasePrivKeyID string `env:"FB_PRIVATEKEYID"` + FirebaseClientMail string `env:"FB_CLIENTEMAIL"` + FirebasePrivateKey string `env:"FB_PRIVATEKEY"` + GoogleAPITokenURI string `env:"GOOG_TOKENURI"` + GoogleAPIPrivKeyID string `env:"GOOG_PRIVATEKEYID"` + GoogleAPIClientMail string `env:"GOOG_CLIENTEMAIL"` + GoogleAPIPrivateKey string `env:"GOOG_PRIVATEKEY"` + GooglePackageName string `env:"GOOG_PACKAGENAME"` + GoogleProProductID string `env:"GOOG_PROPRODUCTID"` } var Conf Config @@ -116,7 +116,7 @@ var configLocDocker = func() Config { var configDev = func() Config { return Config{ Namespace: "develop", - BaseURL: confEnv("BASE_URL"), + BaseURL: confEnv("SCN_URL"), GinDebug: true, LogLevel: zerolog.DebugLevel, ServerIP: "0.0.0.0", @@ -150,7 +150,7 @@ var configDev = func() Config { var configStag = func() Config { return Config{ Namespace: "staging", - BaseURL: confEnv("BASE_URL"), + BaseURL: confEnv("SCN_URL"), GinDebug: true, LogLevel: zerolog.DebugLevel, ServerIP: "0.0.0.0",