You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
1.9 KiB

  1. .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
  2. :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
  3. :alt: License: AGPL-3
  4. ========================
  5. Forwarded-for IPs in log
  6. ========================
  7. This module makes werkzeug messages in the log show the IP the requests come from instead of the reverse proxy one.
  8. Installation
  9. ============
  10. Only install the module in the database.
  11. Configuration
  12. =============
  13. You should be running Odoo with *--proxy-mode* or *proxy_mode = True* in your configuration file and have your reverse proxy set the XFF header.
  14. This can be achieved with nginx adding the following in your site configuration:
  15. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  16. Usage
  17. =====
  18. If everything is well configured, you will see the IPs the requests come from in the log instead of the proxy one.
  19. Known issues / Roadmap
  20. ======================
  21. * None
  22. Bug Tracker
  23. ===========
  24. Bugs are tracked on `GitHub Issues <https://github.com/OCA/
  25. server-tools/issues>`_.
  26. In case of trouble, please check there if your issue has already been reported.
  27. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback `here <https://github.com/OCA/
  28. server-tools/issues/new?body=module:%20
  29. log_forwarded_for_ip%0Aversion:%20
  30. {version}%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
  31. Credits
  32. =======
  33. Contributors
  34. ------------
  35. * Pablo Cayuela <pablo.cayuela@aserti.es>
  36. Maintainer
  37. ----------
  38. .. image:: https://odoo-community.org/logo.png
  39. :alt: Odoo Community Association
  40. :target: https://odoo-community.org
  41. This module is maintained by the OCA.
  42. OCA, or the Odoo Community Association, is a nonprofit organization whose
  43. mission is to support the collaborative development of Odoo features and
  44. promote its widespread use.
  45. To contribute to this module, please visit http://odoo-community.org.