mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 16:30:17 +02:00
config: don't change address value on databroker or authorize (#2092)
This commit is contained in:
parent
7c98e0ae76
commit
ebfbdb721b
1 changed files with 0 additions and 10 deletions
|
@ -541,16 +541,6 @@ func (o *Options) Validate() error {
|
|||
return errors.New("config: unknown databroker storage backend type")
|
||||
}
|
||||
|
||||
if IsAuthorize(o.Services) || IsDataBroker(o.Services) {
|
||||
// if authorize is set, we don't really need a http server
|
||||
// but we'll still set one up incase the user wants to use
|
||||
// the HTTP health check api
|
||||
if o.Addr == o.GRPCAddr {
|
||||
o.Addr = DefaultAlternativeAddr
|
||||
log.Warn().Str("Addr", o.Addr).Str("GRPCAddr", o.Addr).Msg("config: default http handler changed")
|
||||
}
|
||||
}
|
||||
|
||||
if o.SharedKey == "" {
|
||||
return errors.New("config: shared-key cannot be empty")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue