Skip to content

Commit

Permalink
feat: remove not implemented transaction limit
Browse files Browse the repository at this point in the history
  • Loading branch information
fionera committed Oct 5, 2024
1 parent 8d8db4e commit d7daf2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
12 changes: 5 additions & 7 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,11 @@ type config struct {
Bind string `yaml:"bind"`
Log logConfig `yaml:",inline"`
Applications []struct {
Log logConfig `yaml:",inline"`
Name string `yaml:"name"`
Directives string `yaml:"directives"`
ResponseCheck bool `yaml:"response_check"`
TransactionTTLMS int `yaml:"transaction_ttl_ms"`
TransactionActiveLimit int `yaml:"transaction_active_limit"`
TransactionActiveLimitReject bool `yaml:"transaction_active_limit_reject"`
Log logConfig `yaml:",inline"`
Name string `yaml:"name"`
Directives string `yaml:"directives"`
ResponseCheck bool `yaml:"response_check"`
TransactionTTLMS int `yaml:"transaction_ttl_ms"`
} `yaml:"applications"`
}

Expand Down
8 changes: 0 additions & 8 deletions example/coraza-spoa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,3 @@ applications:
log_file: /dev/stdout
# The log format, one of: console/json
log_format: console

# The maximum number of transactions which can be cached
transaction_active_limit: 1000

# After reaching the maximum number of transactions:
# If true then the new transactions will be rejected with deny and status code 503
# If false, the new transaction will be processed, ignoring the response
transaction_active_limit_reject: false

0 comments on commit d7daf2e

Please sign in to comment.