mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-01 22:01:10 +00:00
18 lines
508 B
Markdown
18 lines
508 B
Markdown
## Reverse Proxy Setup
|
|
### Rate Limiting Headers
|
|
The application uses IP-based rate limiting on some endpoints. When deploying behind a reverse proxy, you must forward the
|
|
original client IP, otherwise the "per IP" rate limiting will become global, per any request aimed at those endpoints, regardless of origin:
|
|
|
|
```text
|
|
# Nginx
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
# Apache
|
|
RemoteIPHeader X-Forwarded-For
|
|
|
|
# Caddy
|
|
reverse_proxy {
|
|
header_up X-Forwarded-For {remote_host}
|
|
}
|
|
```
|