From 09f795bf97306443968a527ed8939ccee16fc03d Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 15 Jun 2024 00:52:13 +0200 Subject: [PATCH] Update certificate and key file paths in main.go and config.go --- occupi-backend/.dev.env.gpg | Bin 583 -> 594 bytes occupi-backend/.prod.env.gpg | Bin 583 -> 594 bytes occupi-backend/cmd/occupi-backend/main.go | 2 +- occupi-backend/configs/config.go | 8 ++++---- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/occupi-backend/.dev.env.gpg b/occupi-backend/.dev.env.gpg index ef002d33426639b86f0d148029cd750938956135..52f36a9f03c2b14590c5a33b6bf38c32d54e091f 100644 GIT binary patch literal 594 zcmV-Y0?i+B(+)U9RJek0lT~D!^mbXYU_OEpI+o1WuztpPh12R&iVXW zetq{ZTK3QL3ctJ-#S*Lr5)r1FC$)hM)7#Z5MebUMtYYkn63dv~CrA^dpuz_o?ZiZ& z;(UvA4`6c3`v*!N?j=L<+imO%UdM5WEVPtGvM7=m$(bpGl^1u-v?nY~_jrr(SG{kU z=t}S}HiLC`Wul0p((JIjID40YMpj`hH^Utl^&42SAf}_Fcs~9?h0Z0Tu}f>izj%zV zC%0KwV^2ag^WGqSrJI8|QZ284)i2O8US2MSspb)j3yMv+* z`b%P1gz<@dGvZfRHJxw_J8rJfK9wE9)rL$YCSntjzdtc}K!RvSyQ@W`Y#!I!jXExd ze3e4@@y2EjcDVbgSW@g;NVoN=j9c9C;B;Abm!&$=?{)~?B!ph1gj}U93;Igf^aQ3u z)Jk7l-`X~gHUcA>xd7A%aijxD(-odC=U!10x@FdB`R)IXulzabyLBJOCDI%un^pjR zrySu0*l+6A8G-N;@GaZCCKPrJrwU&VZzdTC4nUN!7U!S&h0wR9F85GRmv|sU>|q8D zH!5%>@`~WIycD!n$mylIK1+0WO{$TZYP2UYb^;_3UGIywhUhR*z~;Y(^4; zcL-h)Xv1WSBou8$VyhfrFq|ZzzFeC=&hpMT_g`Ojgv5*#Lqy}PF_rB7roY#Ccv>>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*4Fm}T0)B9%+524X*8kG!0SHhJe7!>8m8U|MP<(03qsb3dY+qNUrSrYO zHCB4m?OPwtmi-#5l6--ES?u_Ayx<%$6Os94s9s;Sg@vjV?8xzv5KRLn@4U%y!b)`9 z__!A3tDs8PyOfrzof6b(e5c>+H^#7a-Q>P19n@L)Ps;Bhp>MW6uRUiZS{Egj4l#(X`Fs=H`WOsSH|chTpERU4-bu6%E4XS$^J@ z4woW{Evj9=@nMg{}`c&^s(W VaJx|iX{&foS@1jKiZrx)V`=7fETsSd 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 }