github.com/hellofresh/janus@v0.0.0-20230925145208-ce8de8183c67/docs/plugins/body_limit.md (about)

     1  # Body Limit
     2  
     3  Block incoming requests whose body is greater than a specific size in megabytes.
     4  
     5  ## Configuration
     6  
     7  The plain request transformer config:
     8  
     9  ```json
    10  "body_limit": {
    11      "enabled": true,
    12      "config": {
    13          "limit": "40M"
    14      }
    15  }
    16  ```
    17  
    18  Here is a simple definition of the available configurations.
    19  
    20  | Configuration                 | Description                                                         |
    21  |-------------------------------|---------------------------------------------------------------------|
    22  | name                          | Name of the plugin to use, in this case: body_limit        |
    23  | config.limit      | Allowed request payload size. You can set the size in `B` for bytes,`K` for kilobytes, `M` for megabytes, `G` for gigabytes and `T` for terabytes  |