You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
2024-01-11 15:24:50,858 16 INFO test odoo.addons.base.models.res_users: Login successful for db:test login:admin@test.com from 172.21.0.1
2024-01-11 15:24:52,893 16 INFO test odoo.addons.base.models.res_users: Login successful for db:test login:admin@test.com from 172.21.0.1
2024-01-11 15:25:49,416 19 INFO test odoo.addons.base.models.res_users: Login successful for db:test login:admin@test.com from 172.21.0.1
2024-01-11 15:45:32,613 16 INFO test odoo.addons.base.models.res_users: Login successful for db:test login:admin@test.com from 172.21.0.1
2024-01-11 15:49:47,907 19 INFO test odoo.addons.base.models.res_users: Login successful for db:test login:admin@test.com from 172.21.0.1
2024-01-11 16:18:54,757 16 INFO test odoo.addons.base.models.res_users: Login successful for db:test login:admin@test.com from 172.21.0.1
Thanks for everyone‘s help, the problem has been solved.
It may be because the nginx configuration file was not reloaded after updating the configuration file.
After restarting the nginx service, the client's real address can be obtained.
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
The text was updated successfully, but these errors were encountered: