mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-12 15:52:53 +02:00
controller and main command
This commit is contained in:
parent
5ba601d129
commit
3452474564
12 changed files with 437 additions and 2 deletions
21
internal/zero/cmd/env_dev.go
Normal file
21
internal/zero/cmd/env_dev.go
Normal file
|
@ -0,0 +1,21 @@
|
|||
//go:build !release
|
||||
|
||||
package cmd
|
||||
|
||||
import "os"
|
||||
|
||||
func getConnectAPIEndpoint() string {
|
||||
connectServerEndpoint := os.Getenv("CONNECT_SERVER_ENDPOINT")
|
||||
if connectServerEndpoint == "" {
|
||||
connectServerEndpoint = "http://localhost:8721"
|
||||
}
|
||||
return connectServerEndpoint
|
||||
}
|
||||
|
||||
func getClusterAPIEndpoint() string {
|
||||
clusterAPIEndpoint := os.Getenv("CLUSTER_API_ENDPOINT")
|
||||
if clusterAPIEndpoint == "" {
|
||||
clusterAPIEndpoint = "http://localhost:8720/cluster/v1"
|
||||
}
|
||||
return clusterAPIEndpoint
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue