Move ratelimited
This commit is contained in:
parent
0040aa5be1
commit
0a028dbc1a
|
@ -3,7 +3,7 @@ proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=skynet:10m max_size=10g
|
|||
# ratelimit specified IPs
|
||||
geo $limit {
|
||||
default 0;
|
||||
include /etc/nginx/conf.d/include/ratelimited;
|
||||
include /etc/nginx/conf.d/include/ratelimited/*;
|
||||
}
|
||||
map $limit $limit_key {
|
||||
0 "";
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
# Add a list of IPs here that should be severely rate limited on upload.
|
||||
# Every file in this directory will be included.
|
||||
#
|
||||
# Note that it is possible to add IP ranges as well as the full IP address.
|
||||
#
|
||||
# Examples:
|
Reference in New Issue