@@ -23,9 +23,12 @@ func init() {
2323var Config Schema
2424
2525var Default = Schema {
26- WorkflowLimit : Int (200 ),
27- WorkflowRegistrationQueueLimit : Int (20 ),
28- WorkflowExecutionConcurrencyLimit : Int (50 ),
26+ WorkflowLimit : Int (200 ),
27+ WorkflowRegistrationQueueLimit : Int (20 ),
28+ WorkflowExecutionConcurrencyLimit : Int (50 ),
29+ UnauthenticatedRequestRateLimit : Rate (rate .Every (time .Second / 100 ), - 1 ),
30+ UnauthenticatedRequestRateLimitPerIP : Rate (rate .Every (time .Second ), - 1 ),
31+ IncomingPayloadSizeLimit : Size (10 * config .KByte ),
2932
3033 PerOrg : Orgs {
3134 WorkflowDeploymentRateLimit : Rate (rate .Every (time .Minute ), 1 ),
@@ -60,7 +63,8 @@ var Default = Schema{
6063 RateLimit : Rate (rate .Every (30 * time .Second ), 1 ),
6164 },
6265 HTTPTrigger : httpTrigger {
63- RateLimit : Rate (rate .Every (30 * time .Second ), 3 ),
66+ RateLimit : Rate (rate .Every (30 * time .Second ), 3 ),
67+ IncomingPayloadSizeLimit : Size (10 * config .KByte ),
6468 },
6569 LogTrigger : logTrigger {
6670 RateLimit : Rate (rate .Every (10 * time .Second ), - 1 ), //TODO
@@ -93,9 +97,12 @@ var Default = Schema{
9397}
9498
9599type Schema struct {
96- WorkflowLimit Setting [int ] `unit:"{workflow}"`
97- WorkflowRegistrationQueueLimit Setting [int ] `unit:"{workflow}"`
98- WorkflowExecutionConcurrencyLimit Setting [int ] `unit:"{workflow}"`
100+ WorkflowLimit Setting [int ] `unit:"{workflow}"`
101+ WorkflowRegistrationQueueLimit Setting [int ] `unit:"{workflow}"`
102+ WorkflowExecutionConcurrencyLimit Setting [int ] `unit:"{workflow}"`
103+ UnauthenticatedRequestRateLimit Setting [config.Rate ]
104+ UnauthenticatedRequestRateLimitPerIP Setting [config.Rate ]
105+ IncomingPayloadSizeLimit Setting [config.Size ]
99106
100107 PerOrg Orgs `scope:"org"`
101108 PerOwner Owners `scope:"owner"`
@@ -150,7 +157,8 @@ type cronTrigger struct {
150157 RateLimit Setting [config.Rate ]
151158}
152159type httpTrigger struct {
153- RateLimit Setting [config.Rate ]
160+ RateLimit Setting [config.Rate ]
161+ IncomingPayloadSizeLimit Setting [config.Size ]
154162}
155163type logTrigger struct {
156164 RateLimit Setting [config.Rate ]
0 commit comments