Skip to content

Commit

Permalink
Document the RATE_LIMIT_HEADERS feature
Browse files Browse the repository at this point in the history
  • Loading branch information
chirino committed Mar 23, 2023
1 parent 1f5455e commit 9e7786a
Showing 1 changed file with 43 additions and 11 deletions.
54 changes: 43 additions & 11 deletions doc/server/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,43 @@ The preferred way of starting and configuring the Limitador server is using the

```
USAGE:
limitador-server [OPTIONS] <LIMITS_FILE> [STORAGE]
limitador-server [OPTIONS] [LIMITS_FILE] [STORAGE]
ARGS:
<LIMITS_FILE> The limit file to use
<LIMITS_FILE> The limit file to use [default:
../apex/deploy/nexodus/components/limitador/files/limits.yaml]
OPTIONS:
-b, --rls-ip <ip> The IP to listen on for RLS [default: 0.0.0.0]
-p, --rls-port <port> The port to listen on for RLS [default: 8081]
-B, --http-ip <http_ip> The IP to listen on for HTTP [default: 0.0.0.0]
-P, --http-port <http_port> The port to listen on for HTTP [default: 8080]
-l, --limit-name-in-labels Include the Limit Name in prometheus label
-v Sets the level of verbosity
--validate Validates the LIMITS_FILE and exits
-h, --help Print help information
-V, --version Print version information
-b, --rls-ip <ip>
The IP to listen on for RLS [default: 0.0.0.0]
-p, --rls-port <port>
The port to listen on for RLS [default: 8081]
-B, --http-ip <http_ip>
The IP to listen on for HTTP [default: 0.0.0.0]
-P, --http-port <http_port>
The port to listen on for HTTP [default: 8080]
-l, --limit-name-in-labels
Include the Limit Name in prometheus label
-v
Sets the level of verbosity
--validate
Validates the LIMITS_FILE and exits
-H, --rate-limit-headers <rate_limit_headers>
Enables rate limit response headers [default: NONE] [possible values: NONE,
DRAFT_VERSION_03]
-h, --help
Print help information
-V, --version
Print version information
STORAGES:
memory Counters are held in Limitador (ephemeral)
Expand Down Expand Up @@ -319,3 +341,13 @@ require Redis.
- Optional. By default, Limitador stores the limits in memory and does not
require Infinispan.
- Format: `URL`, in the format of `http://username:[email protected]:11222`.
#### `RATE_LIMIT_HEADERS`
- Enables rate limit response headers. Only supported by the RLS server.
- Optional. Defaults to `"NONE"`.
- Must be one of:
- `"NONE"` - Does not add any additional headers to the http response.
- `"DRAFT_VERSION_03"`. Adds response headers per https://datatracker.ietf.org/doc/id/draft-polli-ratelimit-headers-03.html

0 comments on commit 9e7786a

Please sign in to comment.