use centralized api

This commit is contained in:
Denis Mishin 2023-08-15 21:00:26 -04:00
parent e4c1da1627
commit a2a8c04740
4 changed files with 17 additions and 15 deletions

View file

@ -73,7 +73,7 @@ func newControllerConfig(opts ...Option) *controllerConfig {
WithClusterAPIEndpoint("https://console.pomerium.com/cluster/v1"),
WithConnectAPIEndpoint("https://connect.pomerium.com"),
WithBootstrapConfigFileName("/var/cache/pomerium-bootstrap.dat"),
WithDatabrokerLeaseDuration(time.Minute),
WithDatabrokerLeaseDuration(time.Second * 30),
WithDatabrokerRequestTimeout(time.Second * 30),
} {
opt(c)