Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

use "%d" in nginx with "dbfilter_from_header" module

by
Ygol InternetWork, Yves Goldberg
- 31/12/2020 10:59:28

hi all,

How may I pass the equivalent of "dbfilter = ^%d.*" (odoo conf file option) to a nginx proxy_set_header for dbfilter (using module dbfilter_from_header (odoo 13)?

I tried to use "<subdomain>" or $subdomain in my expression but It doesn't get substituted before being sent to odoo.
i.e. unsuccessfully tried:
proxy_set_header X-Odoo-dbfilter \b(?<subdomain>.*)\b\S+; 
proxy_set_header X-Odoo-dbfilter \b(?\<subdomain\>.*)\b\S+; 
proxy_set_header X-Odoo-dbfilter \b(?\$subdomain.*)\b\S+; 
proxy_set_header X-Odoo-dbfilter ^%d.*;


anyone can help?

the use case is that I would like to set this dbfilter for only some defined range of subdomains.

TIA 



 --
Yves Goldberg
odooOfficial Partner - OCA delegate
Open Source ERP, CRM & CMS
T +972 (3) 720 8818
+972 (55) 966 1405
+32 (2) 588 2500
 
 
--

Follow-Ups