Skip to content

Commit

Permalink
Updates required environment variables. Refs #1
Browse files Browse the repository at this point in the history
  • Loading branch information
ariel17 committed Mar 6, 2023
1 parent daa7175 commit 6f26550
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ docker build . -t be-challenge-arios
### Using environment variables file
Add keys to `.env` file:
```
MY_SECRET_KEY1=v4lu3!#
FOOTBALL_APIKEY=v4lu3!#
```

Make Docker pick them as follows:
Expand All @@ -25,4 +25,4 @@ swag init -o api
```

* Served on http://localhost:8080/swagger/index.html
* Swaggo docs: https://github.com/swaggo/swag#getting-started
* Swaggo docs: https://github.com/swaggo/swag#getting-started
4 changes: 2 additions & 2 deletions pkg/configs/clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package configs
import "os"

const (
FOOTBALL_APIKEY_KEY = "FOOTBALL_APIKEY"
FootballApikeyKey = "FOOTBALL_APIKEY"
)

var (
Expand All @@ -15,5 +15,5 @@ func GetFootballAPIKey() string {
}

func init() {
apiKey = os.Getenv(FOOTBALL_APIKEY_KEY)
apiKey = os.Getenv(FootballApikeyKey)
}

0 comments on commit 6f26550

Please sign in to comment.