diff --git a/README.md b/README.md index 5af9f8a..ddfdfac 100644 --- a/README.md +++ b/README.md @@ -118,6 +118,7 @@ For all: For instance administrators: - [Reverse proxy: Nginx](docs/reverse_proxy_nginx.md) - [Database: PostgreSQL](docs/db_postgresql.md) +- [Rate limiting](docs/ratelimits.md) - [Make Lenpaste server private](docs/private_server.md) For developers: diff --git a/docs/ratelimits.md b/docs/ratelimits.md new file mode 100644 index 0000000..afed410 --- /dev/null +++ b/docs/ratelimits.md @@ -0,0 +1,11 @@ +# Rate limiting +Rate limits protect your server from abuse. +The default settings are optimal. +**Don't change default settings if you don't understand what you're doing.** + +Each individual IP address has its own rate limit. +Also the rate limits of different actions do not depend on each other. + +| Acts on | Measured in | Default | Docker variable | CLI flag | +|---------------------|--------------------------|---------|--------------------------------|-----------------------| +| New paste creation. | New pastes per 5 minute. | `15` | `LENPASTE_NEW_PASTES_PER_5MIN` | `-new-pastes-per-5min`|