Nginx configuration for Discourse forum over Tor

I’m not exactly sure how tor user addresses work. But for me all the user logged ip’s show as 127.0.0.1 which I’d expect but I have set the x-forwarded-for header in nginx.

I’m not sure whether tor users have something similar to an ip over the tor network itself, and how I get this to show.