Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISSUE-640 Apisix - plugin - client control for setting the max size of the client request body #937

Merged
merged 2 commits into from
Feb 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions demo/apisix/conf/apisix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ routes:
regex_uri:
- "^/oidc/upload/(.*)"
- "/upload/$1"
client-control:
max_body_size: 20000000
-
id: upload_draft
uri: /oidc/upload
Expand All @@ -72,6 +74,8 @@ routes:
plugins:
proxy-rewrite:
uri: /upload
client-control:
max_body_size: 20000000
-
id: web_known_finger
uris:
Expand Down Expand Up @@ -153,13 +157,19 @@ routes:
- POST
- OPTIONS
plugin_config_id: jmap-plugin
plugins:
client-control:
max_body_size: 20000000
- id: upload_draft_basic_auth
uri: /upload
service_id: jmap_service_basic_auth
methods:
- POST
- OPTIONS
plugin_config_id: jmap-plugin
plugins:
client-control:
max_body_size: 20000000
- id: web_known_linagora_ecosystem_basic_auth
uri: /.well-known/linagora-ecosystem
service_id: jmap_service_basic_auth
Expand Down Expand Up @@ -264,6 +274,8 @@ plugin_configs:
failures: 3 # should be var: JMAP_CIRCUIT_BREAKER_MAXERRORS
healthy:
successes: 1
client-control:
max_body_size: 1000000
ext-plugin-pre-req:
_meta:
filter:
Expand Down