Compare commits
1 Commits
mononaut/r
...
v2.3.0-dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b3e47e1438 |
10
nginx.conf
10
nginx.conf
@@ -54,10 +54,16 @@ http {
|
|||||||
proxy_cache_path /var/cache/nginx keys_zone=cache:20m levels=1:2 inactive=600s max_size=500m;
|
proxy_cache_path /var/cache/nginx keys_zone=cache:20m levels=1:2 inactive=600s max_size=500m;
|
||||||
types_hash_max_size 2048;
|
types_hash_max_size 2048;
|
||||||
|
|
||||||
# exempt localhost from rate limit
|
# exempt localhost and local networks from rate limits
|
||||||
geo $limited_ip {
|
geo $limited_ip {
|
||||||
default 1;
|
default 1;
|
||||||
127.0.0.1 0;
|
127.0.0.0/8 0;
|
||||||
|
10.0.0.0/8 0;
|
||||||
|
172.16.0.0/12 0;
|
||||||
|
192.168.0.0/16 0;
|
||||||
|
169.254.0.0/16 0;
|
||||||
|
fc00::/7 0;
|
||||||
|
fe80::/10 0;
|
||||||
}
|
}
|
||||||
map $limited_ip $limited_ip_key {
|
map $limited_ip $limited_ip_key {
|
||||||
1 $binary_remote_addr;
|
1 $binary_remote_addr;
|
||||||
|
|||||||
Reference in New Issue
Block a user