nginx.org docs search

2019-12-28 Thread Bernard Rosset
Hello, First of all, since it is that time of the year, I hope you had a merry Christmas, and I wish you all the best for the new year to come! I am a regular user of the https://nginx.org/r/ prefix to search documentation. I might have asked that in the past, and/or someone else might have

Re: if ($remote_addr ~ and set $white_list for subnets?

2019-12-28 Thread antikurjers
I resoved it! out of blocks I add: geo $mark_nocapcha { default 0; 10.10.1.0/241; 10.20.1.0/24 1; 10.30.33.0/24 1; 10.30.14.0/24 1; } ANd add/substitute in server block if ($remote_addr ~ "(10.10.1.128)|(10.20.1.53)|(10.30.14.56)") { to if ($mark_no

if ($remote_addr ~ and set $white_list for subnets?

2019-12-28 Thread antikurjers
Hi! I want to mark same subnets to as $white_list. I currently use: # urdas web location / { if ($remote_addr ~ "(10.10.1.128)|(10.20.1.53)|(10.30.14.56)") { set $white_list a712ba9579080e61cd89955a2cb837bf; } proxy_pass http://10.10.1.53:30081; prox

Redis storage for cache

2019-12-28 Thread Ragnar Rova
I want to use redis as the storage for the cache instead of the filesystem. I found a third-party module which seems to offer this: https://github.com/openresty/srcache-nginx-module#caching-with-redis, is this the recommended solution? Hot requests should be served from memory, with redis as a fal