mirror of
https://github.com/openziti/zrok.git
synced 2024-11-26 01:54:09 +01:00
global limits for reserved shares and unique names (#632)
This commit is contained in:
parent
fc403a6c22
commit
7d18bea46c
@ -7,6 +7,8 @@ const Unlimited = -1
|
||||
type Config struct {
|
||||
Environments int
|
||||
Shares int
|
||||
ReservedShares int
|
||||
UniqueNames int
|
||||
Bandwidth *BandwidthConfig
|
||||
Cycle time.Duration
|
||||
Enforcing bool
|
||||
@ -50,6 +52,8 @@ func DefaultConfig() *Config {
|
||||
return &Config{
|
||||
Environments: Unlimited,
|
||||
Shares: Unlimited,
|
||||
ReservedShares: Unlimited,
|
||||
UniqueNames: Unlimited,
|
||||
Bandwidth: &BandwidthConfig{
|
||||
PerAccount: DefaultBandwidthPerPeriod(),
|
||||
PerEnvironment: DefaultBandwidthPerPeriod(),
|
||||
|
Loading…
Reference in New Issue
Block a user