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.

40 lines
1.1 KiB

  1. Odoo-tecnativa is a odoo image containing all source and add-ons because
  2. we want to certify the whole image.
  3. So this means there are no builds being managed by compose, and no injection
  4. of code.
  5. * Usage
  6. ** dbfilter
  7. With image ~16.0~, an advanced version of ~dbfilter~ is installed. Here
  8. a few examples:
  9. #+begin_src yaml
  10. odoo:
  11. # ..
  12. options:
  13. dbfilter:
  14. ## DOMAIN_REGEX: DBFILTER
  15. '^www.domain.org$': '^bar$' ## domain `www.domain.org` can only see `bar`.
  16. '^foo\.': 'foo_.*' ## domain starting with `foo.` can see db `foo_`
  17. '^(?P<name>[^.]+)\.': '%{name}s_.*' ## domain starting with `<PREFIX>.` can see db `PREFIX_`
  18. '': 'other_.*' ## all domains can see db 'other_*'
  19. ## Don't forget to configure the domains in the web-proxy part !
  20. relations:
  21. web-proxy:
  22. apache:
  23. domain: www.domain.org
  24. aliases:
  25. - foo.otherdomain.com
  26. - bar.wiz.eu
  27. - test.domain.org
  28. #+end_src
  29. If there's only one database seen because of the ~dbfilter~, odoo will
  30. use it by default.