Skip to content

Commit

Permalink
Configuration: Document throttling settings
Browse files Browse the repository at this point in the history
  • Loading branch information
pglombardo committed Oct 10, 2022
1 parent 41a771b commit 9b6305b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,22 @@ See the `brand` section of [settings.yml](https://github.com/pglombardo/Password
| GA_ACCOUNT | The Google Analytics account id. E.g. `UA-XXXXXXXX-X` |
| GA_DOMAIN | The domain where the application is hosted. E.g. `pwpush.com` |

# Logging
# Throttling

Throttling enforces a minimum time interval
between subsequent HTTP requests from a particular client, as
well as by defining a maximum number of allowed HTTP requests
per a given time period (per second, minute, hourly, or daily).

| Environment Variable | Description | Default Value |
| --------- | ------------------ | --- |
| PWP__THROTTLING__DAILY | The maximum number of allowed HTTP requests per day | `1000` |
| PWP__THROTTLING__HOURLY | The maximum number of allowed HTTP requests per hour | `100` |
| PWP__THROTTLING__MINUTE | The maximum number of allowed HTTP requests per minute | `30` |
| PWP__THROTTLING__SECOND | The maximum number of allowed HTTP requests per second | `2` |


# Logging

| Environment Variable | Description |
| --------- | ------------------ |
Expand Down
2 changes: 1 addition & 1 deletion config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ host_protocol: 'https'
# Throttling enforces a minimum time interval
# between subsequent HTTP requests from a particular client, as
# well as by defining a maximum number of allowed HTTP requests
# per a given time period (per minute, hourly, or daily).
# per a given time period (per second, minute, hourly, or daily).
#
# See https://github.com/dryruby/rack-throttle#throttling-strategies
# for a description of function.
Expand Down

0 comments on commit 9b6305b

Please sign in to comment.