| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 14 |
| Technical Name |
log_real_ip |
| License | LGPL-3 |
| Website | https://github.com/Paulius11/odoo-custom-addons |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 14 |
| Technical Name |
log_real_ip |
| License | LGPL-3 |
| Website | https://github.com/Paulius11/odoo-custom-addons |
When Odoo runs behind a reverse proxy, werkzeug logs the proxy's internal IP. This module patches it to log the real client IP instead.
Key Features
🌐
X-Forwarded-For
Reads the standard reverse-proxy header to extract the originating client IP address.
🛠
X-Real-IP Fallback
Falls back to the X-Real-IP header — the nginx convention — when X-Forwarded-For is absent.
🔒
Proxy Mode Only
The patch activates only when proxy_mode = True in odoo.conf. Zero impact on direct setups.
⚡
Zero Overhead
A single startup monkey-patch. No database writes, no config UI, no performance cost.
Installation & Setup
- Copy or install the log_real_ip module into your addons path.
- Enable
proxy_mode = Truein yourodoo.conf. - Install the module from the Apps menu.
- Restart Odoo — real IPs will appear in werkzeug access logs immediately.
Please log in to comment on this module