Skip to content

Commit

Permalink
zero: use production urls by default (#4814)
Browse files Browse the repository at this point in the history
  • Loading branch information
wasaga committed Dec 5, 2023
1 parent 2edd63c commit d2b2ad3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 32 deletions.
14 changes: 14 additions & 0 deletions internal/zero/cmd/env.go
Expand Up @@ -29,3 +29,17 @@ func getToken(configFile string) string {
// we will fallback to normal pomerium if empty
return ""
}

func getConnectAPIEndpoint() string {
if endpoint := os.Getenv("CONNECT_SERVER_ENDPOINT"); endpoint != "" {
return endpoint
}
return "https://connect.pomerium.app"
}

func getClusterAPIEndpoint() string {
if endpoint := os.Getenv("CLUSTER_API_ENDPOINT"); endpoint != "" {
return endpoint
}
return "https://console.pomerium.app/cluster/v1"
}
21 changes: 0 additions & 21 deletions internal/zero/cmd/env_dev.go

This file was deleted.

11 changes: 0 additions & 11 deletions internal/zero/cmd/env_release.go

This file was deleted.

0 comments on commit d2b2ad3

Please sign in to comment.