feat: add flag to disaable all rate limits (#5570)

This commit is contained in:
Dean Sheather
2023-01-05 18:05:20 +00:00
committed by GitHub
parent ab7e676b54
commit 5a968e2f93
16 changed files with 292 additions and 110 deletions
+7 -1
View File
@@ -308,7 +308,7 @@ export interface DeploymentConfig {
readonly browser_only: DeploymentConfigField<boolean>
readonly scim_api_key: DeploymentConfigField<string>
readonly provisioner: ProvisionerConfig
readonly api_rate_limit: DeploymentConfigField<number>
readonly rate_limit: RateLimitConfig
readonly experimental: DeploymentConfigField<boolean>
readonly update_check: DeploymentConfigField<boolean>
readonly max_token_lifetime: DeploymentConfigField<number>
@@ -585,6 +585,12 @@ export interface PutExtendWorkspaceRequest {
readonly deadline: string
}
// From codersdk/deploymentconfig.go
export interface RateLimitConfig {
readonly disable_all: DeploymentConfigField<boolean>
readonly api: DeploymentConfigField<number>
}
// From codersdk/replicas.go
export interface Replica {
readonly id: string