Skip to content

Commit

Permalink
set the auth svc on env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
alvin-reyes committed May 6, 2023
1 parent 79b5505 commit 3dbca54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func InitializeEchoRouterConfig(ln *core.LightNode) {
})
}
response, err := http.Post(
"https://estuary-auth-api.onrender.com/check-api-key",
ln.Config.Delta.AuthSvcUrl+"/check-api-key",
"application/json",
strings.NewReader(fmt.Sprintf(`{"token": "%s"}`, authParts[1])),
)
Expand Down
1 change: 1 addition & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type DeltaConfig struct {

Delta struct {
ApiUrl string `env:"DELTA_NODE_API" envDefault:"http://localhost:1414"`
AuthSvcUrl string `env:"AUTH_SVC_URL" envDefault:"https://auth.estuary.tech"`
DealCheck int `env:"DEAL_CHECK" envDefault:"600"`
ReplicationFactor int `env:"REPLICATION_FACTOR" envDefault:"3"`
}
Expand Down

0 comments on commit 3dbca54

Please sign in to comment.