Skip to content

Commit

Permalink
Fix Data Portal API HOST to gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
vvalerio-priv committed Feb 5, 2024
1 parent 864470b commit 6e7962d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmd/docker-compose/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ services:
- epos_network
restart: always
environment:
- BASE_URL="/"
- API_HOST="http://gateway:5000/api/v1"
- BASE_URL=/
- API_HOST=http://gateway:5000/api
gateway:
image: "${DOCKER_REGISTRY}/${GATEWAY_IMAGE}"
container_name: gateway
Expand Down
6 changes: 3 additions & 3 deletions cmd/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ func setupIPs() {

val, present := os.LookupEnv("API_HOST_ENV")
if present {
fmt.Print(val)
os.Setenv("API_HOST_ENV", val)
} else {
os.Setenv("API_HOST_ENV", localAddr.IP.String())
}

os.Setenv("API_HOST", "http://"+os.Getenv("API_HOST_ENV")+":"+os.Getenv("API_PORT")+os.Getenv("DEPLOY_PATH")+"/api")
os.Setenv("API_HOST", "http://"+os.Getenv("API_HOST_ENV")+":"+os.Getenv("API_PORT")+os.Getenv("DEPLOY_PATH")+os.Getenv("API_PATH"))
os.Setenv("EXECUTE_HOST", "http://"+os.Getenv("API_HOST_ENV")+":"+os.Getenv("API_PORT"))
os.Setenv("HOST", "http://"+os.Getenv("API_HOST_ENV")+":"+os.Getenv("GUI_PORT"))
os.Setenv("LOCAL_IP", os.Getenv("API_HOST_ENV"))
Expand Down Expand Up @@ -236,5 +236,5 @@ func getLastDockerImageTag(repo string) string {
}

func getVersion() string {
return "0.4.0"
return "0.5.0"
}

0 comments on commit 6e7962d

Please sign in to comment.