fix(geo): parse netlify ip header by default: x-nf-client-connection-ip

This header is not clearly documented, but it is mentioned in
semi-official sources, and I have tested it to ensure it's working
properly.

Without this, Umami is unable to detect geolocation by default if
deployed on Netlify.

* https://answers.netlify.com/t/is-the-client-ip-header-going-to-be-supported-long-term/11203/2
* https://httptoolkit.com/blog/what-is-x-forwarded-for/#and-others
This commit is contained in:
Andrey Nering 2025-09-14 22:10:21 -03:00
parent 503a1f740c
commit bfcc822b40

View file

@ -344,6 +344,7 @@ export const IP_ADDRESS_HEADERS = [
'x-cluster-client-ip',
'x-forwarded',
'x-forwarded-for',
'x-nf-client-connection-ip',
'x-real-ip',
];