Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: use "%d" in nginx with "dbfilter_from_header" module
Re: use "%d" in nginx with "dbfilter_from_header" module
Re: use "%d" in nginx with "dbfilter_from_header" module
by
Ygol InternetWork, Yves Goldberg
Thanks Bruno. The second one is the one I am using and the 1st one is similar.
My question is more about if there is a syntax I could use.
Happy new year
----- Original message -----
From: Bruno Joliveau <bruno.joliveau@numigi.com>
To: Contributors <contributors@odoo-community.org>
Subject: Re: use "%d" in nginx with "dbfilter_from_header" module
Date: Thursday, December 31, 2020 18:37
I sent my mail too quickly ;-)
|
Le jeu. 31 déc. 2020 à 11:30, Bruno Joliveau <bruno.joliveau@numigi.com> a écrit :
Hi Yves,Maybe this https://github.com/muk-it/muk_base/tree/13.0/muk_dbfilter help you?Have a nice day!
Bruno Joliveau - Architecte applications - PrésidentNUMIGI SOLUTIONS INC.(514) 317-7944Longueuil, Québec, CanadaLe jeu. 31 déc. 2020 à 05:02, Yves Goldberg <yves@ygol.com> a écrit :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 Goldbergodoo| Official Partner - OCA delegateOpen Source ERP, CRM & CMST +972 (3) 720 8818
M +972 (55) 966 1405T +32 (2) 588 2500--
_______________________________________________Mailing-List: https://odoo-community.org/groups/contributors-15Post to: mailto:contributors@odoo-community.orgUnsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
Reference
-
use "%d" in nginx with "dbfilter_from_header" module
byYgol InternetWork, Yves Goldberg-
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.
-