services.mastodon.trustedProxy

NixOS option

You need to set it to the IP from which your reverse proxy sends requests to Mastodon’s web process, otherwise Mastodon will record the reverse proxy’s own IP as the IP of all requests, which would be bad because IP addresses are used for important rate limits and security functions.

type: string
Default
"127.0.0.1"
declared in: nixos/modules/services/web-apps/mastodon.nixView source on NixOS/nixpkgs →