Contributors mailing list archives
contributors@odoo-community.org
Browse archives
use "%d" in nginx with "dbfilter_from_header" module
by
Ygol InternetWork, Yves Goldberg
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
odoo| Official Partner - OCA delegate
Open Source ERP, CRM & CMS
T +972 (3) 720 8818
M +972 (55) 966 1405
M +972 (55) 966 1405
T +32 (2) 588 2500
--
Follow-Ups
-
Re: use "%d" in nginx with "dbfilter_from_header" module
byYgol InternetWork, Yves Goldberg -
Re: use "%d" in nginx with "dbfilter_from_header" module
byCoop IT Easy SC agréée, Rémy Taymans -
Re: use "%d" in nginx with "dbfilter_from_header" module
byYgol InternetWork, Yves Goldberg -
Re: use "%d" in nginx with "dbfilter_from_header" module
byNUMIGI Solutions Inc., Bruno Joliveau. -
Re: use "%d" in nginx with "dbfilter_from_header" module
byNUMIGI Solutions Inc., Bruno Joliveau.