mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-11-28 11:22:10 +01:00
Adding test and some docs
This commit is contained in:
parent
926967b6e7
commit
20c014ba8d
2 changed files with 18 additions and 3 deletions
|
|
@ -555,12 +555,13 @@ Whatever your reasons may be, there are a few things to consider.
|
|||
If you are running ntfy behind a proxy, you should set the `behind-proxy` flag. This will instruct the
|
||||
[rate limiting](#rate-limiting) logic to use the `X-Forwarded-For` header as the primary identifier for a visitor,
|
||||
as opposed to the remote IP address. If the `behind-proxy` flag is not set, all visitors will
|
||||
be counted as one, because from the perspective of the ntfy server, they all share the proxy's IP address.
|
||||
be counted as one, because from the perspective of the ntfy server, they all share the proxy's IP address. If your proxy or CDN provider uses a custom header to securely pass the source IP/Client IP to your application, you can specify that header instead of using the XFF. Using the custom header (unique per provide/cdn/proxy), will disable the use of the XFF header.
|
||||
|
||||
=== "/etc/ntfy/server.yml"
|
||||
``` yaml
|
||||
# Tell ntfy to use "X-Forwarded-For" to identify visitors
|
||||
behind-proxy: true
|
||||
proxy-client-ip-header: "X-Client-IP"
|
||||
```
|
||||
|
||||
### TLS/SSL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue