Skip to content

Commit

Permalink
updated env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
DouglasFischer committed Sep 29, 2024
1 parent 5460ac0 commit 39489f8
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions internal/config/env.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package config

import "os"

type EnvVar struct {
PsqlconnStringGOrdian string
PsqlconnStringCashflow string
Expand All @@ -15,24 +17,24 @@ func GetEnv() EnvVar {

envConfig := EnvVar{
//prod
//PsqlconnStringGOrdian: os.Getenv("GO_CONN"),
//PsqlconnStringCashflow: os.Getenv("CF_CONN"),
//LoginURL: os.Getenv("LOGIN_URL"),
//LoginToken: os.Getenv("LOGIN_TOKEN"),
//PlsURL: os.Getenv("PLS_URL"),
//PlsSystem: os.Getenv("PLS_SYSTEM"),
//ServerPort: os.Getenv("SERVER_PORT"),
//ServerURL: os.Getenv("SERVER_URL"),
PsqlconnStringGOrdian: os.Getenv("GO_CONN"),
PsqlconnStringCashflow: os.Getenv("CF_CONN"),
LoginURL: os.Getenv("LOGIN_URL"),
LoginToken: os.Getenv("LOGIN_TOKEN"),
PlsURL: os.Getenv("PLS_URL"),
PlsSystem: os.Getenv("PLS_SYSTEM"),
ServerPort: os.Getenv("SERVER_PORT"),
ServerURL: os.Getenv("SERVER_URL"),

//local
PsqlconnStringGOrdian: "host=localhost port=5432 user=alexander password=kopis dbname=budget_local sslmode=disable",
PsqlconnStringCashflow: "host=localhost port=54321 user=cashflow password=cashflow dbname=cashflow sslmode=disable",
LoginURL: "https://login.datasektionen.se",
PlsURL: "https://pls.datasektionen.se",
PlsSystem: "gordian",
ServerPort: "3000",
ServerURL: "http://localhost:3000",
LoginToken: "this is secret fuck you",
// local
// PsqlconnStringGOrdian: "host=localhost port=5432 user=alexander password=kopis dbname=budget_local sslmode=disable",
// PsqlconnStringCashflow: "host=localhost port=54321 user=cashflow password=cashflow dbname=cashflow sslmode=disable",
// LoginURL: "https://login.datasektionen.se",
// PlsURL: "https://pls.datasektionen.se",
// PlsSystem: "gordian",
// ServerPort: "3000",
// ServerURL: "http://localhost:3000",
// LoginToken: "this is secret fuck you",
}

return envConfig
Expand Down

0 comments on commit 39489f8

Please sign in to comment.