I am running LibreTranslate using Docker, specifically behind a dockerized nginx proxy.
LibreTranslate is logging the internal IP address of the proxy, 10.0.1.2, not the external address.
The same proxy is correctly passing the necessary headers to other apps running behind it, including Mastodon, Wordpress, and more.
The proxy contains (in addition to other settings), these default settings that are applied to all apps behind it:
# HTTP 1.1 support proxy_http_version 1.1; proxy_buffering off; proxy_set_header Host $http_host; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $proxy_connection; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto; proxy_set_header X-Forwarded-Ssl $proxy_x_forwarded_ssl; proxy_set_header X-Forwarded-Port $proxy_x_forwarded_port;
Any thoughts on what could be breaking this? If I need additional proxy headers, I can add them. If this may be a bug, I can open a ticket on Github.