Move ratelimited

This commit is contained in:
PJ 2020-11-25 15:30:29 +01:00
parent 0040aa5be1
commit 0a028dbc1a
No known key found for this signature in database
GPG Key ID: F345964979FA8971
2 changed files with 3 additions and 1 deletions

View File

@ -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 "";

View File

@ -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: