Skip to content

Commit

Permalink
Added default value for Origin config
Browse files Browse the repository at this point in the history
  • Loading branch information
zembrodt committed Jun 21, 2021
1 parent 47e6495 commit 4aa80ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Music Display API

Go server used by the Music Display app to make API requests where a client secret is needed.
Go server used by the Music Display app to make API requests where a client secret is needed.

Server is deployed to https://music-display-api.herokuapp.com/ for development purposes.
1 change: 1 addition & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func setConfigurations() {
viper.SetDefault(global.ServerPort, 8000)
viper.SetDefault(global.ClientIdKey, "")
viper.SetDefault(global.ClientSecretKey, "")
viper.SetDefault(global.OriginKey, "*")
viper.SetDefault(global.MaxAgeKey, "86400")

// Get config from config.yaml
Expand Down

0 comments on commit 4aa80ac

Please sign in to comment.