I am using Synology reverse proxy to OpenWrt, but the login logs in OpenWrt do not display the real source IP. Instead, it shows the login address as 10.0.0.5. It's worth noting that with the same settings, I can see the correct source IP in Home Assistant.
Questions:
Does uHTTPd not check the X-Forwarded-For header option?
How should I modify my settings to correctly display the source IP in login logs?
uhttpd doesn't look for any of these extra non-standard headers- technically it is logging the real source IP, which is the proxy host. It's intended for minimal embedded applications like this, so not a lot of features. There's an Nginx package though, you could try it if you need the logs.
If the goal is remote access though, you'd be better off just setting up a VPN rather than exposing any management interface to the internet.