mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 16:59:22 +02:00
config: add getters for URLs to avoid nils (#777)
* config: add getters for URLs to avoid nils * allow nil url for cache grpc client connection in authenticate
This commit is contained in:
parent
39187eb305
commit
f770ccfedd
11 changed files with 52 additions and 19 deletions
2
cache/cache.go
vendored
2
cache/cache.go
vendored
|
@ -68,7 +68,7 @@ func newCacheStore(name string, o *config.Options) (s kv.Store, err error) {
|
|||
s, err = autocache.New(&autocache.Options{
|
||||
SharedKey: o.SharedKey,
|
||||
Log: stdlog.New(acLog, "", 0),
|
||||
ClusterDomain: o.CacheURL.Hostname(),
|
||||
ClusterDomain: o.GetCacheURL().Hostname(),
|
||||
})
|
||||
default:
|
||||
return nil, fmt.Errorf("cache: unknown store: %s", name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue