A reverse proxy should include an X-Forwarded-For header in every proxied http request (or you have to configure the proxy to include it). JellyStat gets all info about the sessions from Jellyfin, where you can set trusted proxies in the Networking section.
Look at this documentation: https://jellyfin.org/docs/general/post-install/networking/reverse-proxy