Re: nginx geoip module with reverse proxy in multi tenant

2021-03-27 Thread blason
Thanks appreciated your response. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,291069,291077#msg-291077 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: nginx geoip module with reverse proxy in multi tenant

2021-03-27 Thread Sergey A. Osokin
On Sat, Mar 27, 2021 at 06:34:54AM -0400, blason wrote: > Oh Ok - > > Thanks for the pointer and if my understanding is clear then define > map $geoip_country_code $allowed_country_A > map $geoip_country_code $allowed_country_B > map $geoip_country_code $allowed_country_C > > under http section

[njs] Modules: added js_var directive.

2021-03-27 Thread Dmitry Volyntsev
details: https://hg.nginx.org/njs/rev/63f8aa50e03a branches: changeset: 1622:63f8aa50e03a user: Dmitry Volyntsev date: Sat Mar 27 16:21:21 2021 + description: Modules: added js_var directive. diffstat: nginx/ngx_http_js_module.c | 99

[njs] Version bump.

2021-03-27 Thread Dmitry Volyntsev
details: https://hg.nginx.org/njs/rev/309e073c873d branches: changeset: 1621:309e073c873d user: Dmitry Volyntsev date: Sat Mar 27 16:45:52 2021 + description: Version bump. diffstat: src/njs.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff

Re: nginx geoip module with reverse proxy in multi tenant

2021-03-27 Thread blason
Oh Ok - Thanks for the pointer and if my understanding is clear then define map $geoip_country_code $allowed_country_A map $geoip_country_code $allowed_country_B map $geoip_country_code $allowed_country_C under http section in /etc/nginx/nginx.conf and then use if ($allowed_country_A = no) in

Re: nginx geoip module with reverse proxy in multi tenant

2021-03-27 Thread Francis Daly
On Sat, Mar 27, 2021 at 04:09:29AM -0400, blason wrote: Hi there, > I need to implement geoip blocking but what I understood from the document > is > map $geoip_country_code $allowed_country variable to has to be set in http > section and then > if ($allowed_country = no) { > return 444; >

Re: rate limit by header or API key

2021-03-27 Thread Francis Daly
On Thu, Mar 25, 2021 at 03:48:41PM -0500, Andy Meadows wrote: Hi there, > using nginx open source, is there an option to provide a custom rate limit > by user agent, http header value, or an API key? Looking for the best > option to provide custom rate limits to named users, but the traffic is

nginx geoip module with reverse proxy in multi tenant

2021-03-27 Thread blason
Hi Team, This is nginx 1.19.5 I have reverse proxy server where I am hosting around 20 sites behind nginx reverse proxy server. This reverse proxy server only used for reverse proxy purpose and no local web server is running on it. I need to implement geoip blocking but what I understood from