this post was submitted on 30 May 2026
4 points (83.3% liked)
Lemmy Today
330 readers
1 users here now
If you experience issues or problems with this instance (lemmy.today), this is the place to discuss them. Or if you just want to ask questions about how something works. Anything related to the instance or lemmy itself.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
If you configure it to set
X-Forwarded-For, you should have at least that information now already.That depends on the setup. If you haven't already, you should definitely set
LEMMY_INTERNAL_URLso that mlmym connects to lemmy directly without TLS or a reverse proxy, which should be a lot faster (but that's only possible if they're running on the same machine, of course).X-Forwarded-Protois supposed to say what protocol the user (of mlmym) originally connected with though, right? Which will still end up beinghttpsin the common case of it being behind a reverse proxy that does TLS.I ended up using the external nginx for setting rules for rate limiting and such, and there I see the real ip. It's before traffic even gets to mlmym so that's good.
Also made sure to make it use the internal Lemmy url and skip a lot of the proxy stuff I was using earlier. It seems faster now.
I implemented the headers today, so version 26.2.1 should hopefully do this correctly now.
I could only really test it in my deployment, so feel free to let me know if you have any issues!
Cool. :) I think that will be a very useful feature for a lot of Lemmy admins.
Will play around with it later...!
I will experiment more with this tomorrow or the coming days then. I was trying to get it to work previously but failed (not using your fork but the original mlmym).