docs: Update remote_ip matcher

This commit is contained in:
Matthew Holt 2020-12-12 12:28:12 -07:00
parent bc7f8553c3
commit e63739891c

View file

@ -455,10 +455,10 @@ query sort=asc
### remote_ip
```caddy-d
remote_ip <ranges...>
remote_ip [forwarded] <ranges...>
```
By remote (client) IP address. If `X-Forwarded-For` is passed in request headers, this will be used for remote IP address. Accepts exact IPs or CIDR ranges.
By remote (client) IP address. Accepts exact IPs or CIDR ranges. If the first argument is `forwarded`, then the first IP in the `X-Forwarded-For` request header, if present, will be preferred as the reference IP, rather than the immediate peer's IP, which is the default.
Multiple `remote_ip` matchers will be OR'ed together.