diff --git a/occupi-backend/.dev.env.gpg b/occupi-backend/.dev.env.gpg index ef002d33..52f36a9f 100644 Binary files a/occupi-backend/.dev.env.gpg and b/occupi-backend/.dev.env.gpg differ diff --git a/occupi-backend/.prod.env.gpg b/occupi-backend/.prod.env.gpg index 77955213..8d81fe4f 100644 Binary files a/occupi-backend/.prod.env.gpg and b/occupi-backend/.prod.env.gpg differ diff --git a/occupi-backend/cmd/occupi-backend/main.go b/occupi-backend/cmd/occupi-backend/main.go index 7b5d0242..a154db55 100644 --- a/occupi-backend/cmd/occupi-backend/main.go +++ b/occupi-backend/cmd/occupi-backend/main.go @@ -50,7 +50,7 @@ func main() { keyFile := configs.GetKeyFileName() // fatal error if the cert or key file is not found - if certFile == "CERT_FILE_NAME" || keyFile == "KEY_FILE_NAME" { + if certFile == "CERTIFICATE_FILE_PATH" || keyFile == "KEY_FILE_PATH" { logrus.Fatal("Cert or Key file not found") } diff --git a/occupi-backend/configs/config.go b/occupi-backend/configs/config.go index 33d0cde6..810e6902 100644 --- a/occupi-backend/configs/config.go +++ b/occupi-backend/configs/config.go @@ -115,18 +115,18 @@ func GetSMTPHost() string { // gets the certificate file name as defined in the .env file func GetCertFileName() string { - certFileName := os.Getenv("CERT_FILE_NAME") + certFileName := os.Getenv("CERTIFICATE_FILE_PATH") if certFileName == "" { - certFileName = "CERT_FILE_NAME" + certFileName = "CERTIFICATE_FILE_PATH" } return certFileName } // gets the key file name as defined in the .env file func GetKeyFileName() string { - keyFileName := os.Getenv("KEY_FILE_NAME") + keyFileName := os.Getenv("KEY_FILE_PATH") if keyFileName == "" { - keyFileName = "KEY_FILE_NAME" + keyFileName = "KEY_FILE_PATH" } return keyFileName }