trustProxy:
- '127.0.0.1/32'
- '::1/128'
- '173.245.48.0/20'
- '103.21.244.0/22'

うちはCF-nginx-Misskey(Docker)なんだけど、こんな感じで頑張ってみたものの、Misskeyで得られるIPがDockerのNAT IPになっちゃうので悶えました…。
あきらめて trustProxy: 2 にしました。
1

If you have a fediverse account, you can quote this note from your own instance. Search https://gyutte.site/notes/819b454d0be304bbd60bd507 on your instance and quote it. (Note that quoting is not supported in Mastodon.)