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.

83 lines
2.3 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. dbfilter_from_header
  6. ====================
  7. This addon lets you pass a dbfilter as a HTTP header.
  8. This is interesting for setups where database names can't be mapped to proxied host names.
  9. Installation
  10. ============
  11. To install this module, you only need to add it to your addons, and load it as
  12. a server-wide module.
  13. This can be done with the ``server_wide_modules`` parameter in ``/etc/odoo.conf``
  14. or with the ``--load`` command-line parameter
  15. ``server_wide_modules = "web, dbfilter_from_header"``
  16. Configuration
  17. =============
  18. Please keep in mind that the standard odoo dbfilter configuration is still
  19. applied before looking at the regular expression in the header.
  20. * For nginx, use:
  21. ``proxy_set_header X-Odoo-dbfilter [your filter regex];``
  22. * For caddy, use:
  23. ``proxy_header X-Odoo-dbfilter [your filter regex]``
  24. * For Apache, use:
  25. ``RequestHeader set X-Odoo-dbfilter [your filter regex]``
  26. And make sure that proxy mode is enabled in Odoo's configuration file:
  27. ``proxy_mode = True``
  28. Bug Tracker
  29. ===========
  30. Bugs are tracked on `GitHub Issues
  31. <https://github.com/OCA/server-tools/issues>`_. In case of trouble, please
  32. check there if your issue has already been reported. If you spotted it first,
  33. help us smashing it by providing a detailed and welcomed feedback.
  34. Credits
  35. =======
  36. Contributors
  37. ------------
  38. * Stéphane Bidoul <stephane.bidoul@acsone.eu>
  39. * Yannick Vaucher <yannick.vaucher@camptocamp.com>
  40. * Alexandre Fayolle <alexandre.fayolle@camptocamp.com>
  41. * Holger Brunn <hbrunn@therp.nl>
  42. * Laurent Mignon (aka lmi) <laurent.mignon@acsone.eu>
  43. * Sandy Carter <sandy.carter@savoirfairelinux.com>
  44. * Fabio Vilchez <fabio.vilchez@clearcorp.co.cr>
  45. * Jos De Graeve <Jos.DeGraeve@apertoso.be>
  46. * Lai Tim Siu (Quaritle Limited) <info@quartile.co>
  47. Maintainer
  48. ----------
  49. .. image:: https://odoo-community.org/logo.png
  50. :alt: Odoo Community Association
  51. :target: https://odoo-community.org
  52. This module is maintained by the OCA.
  53. OCA, or the Odoo Community Association, is a nonprofit organization whose
  54. mission is to support the collaborative development of Odoo features and
  55. promote its widespread use.
  56. To contribute to this module, please visit https://odoo-community.org.