Open Etren opened 5 months ago
Hello,
you need to add :
real_ip_header X-Forwarded-For;
real_ip_recursive on;
to the top of your nginx conf. and _proxy_setheader X-Forwarded-Host $host; in headers instead of _proxy_setheader Host $host;
If your are behind an HaProxy for example, you need to add _set_real_ip_from HaProxy_serverIP; to the top of your nginx file.
@Etren does the above answer help you here? Can this issue be closed?
The configuration file sets proxy_mode=True, and nginx also sets a reverse proxy, but the real address of the external client cannot be obtained in the container.
How to get the real address of an external client?
docker log
odoo.conf
Nginx Proxy