mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-18 17:18:16 +02:00
add regex_priority_order and route sorting
This commit is contained in:
parent
d7611b1331
commit
75284959e1
5 changed files with 294 additions and 154 deletions
|
@ -211,6 +211,8 @@ func (src *ConfigSource) addPolicies(ctx context.Context, cfg *config.Config, po
|
|||
seen[id] = struct{}{}
|
||||
}
|
||||
|
||||
config.SortPolicies(additionalPolicies)
|
||||
|
||||
// add the additional policies here since calling `Validate` will reset them.
|
||||
cfg.Options.AdditionalPolicies = append(cfg.Options.AdditionalPolicies, additionalPolicies...)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue