Commit fbd41004 authored by Arnau Vàzquez's avatar Arnau Vàzquez
Browse files

Merge branch 'fix-limits-nginx' into 'master'

remove limits in nginx to prevent overlapping with filtron

Closes backlog#768 and backlog#771

See merge request !136
parents 1cae222d 244e730f
geo $limit {
default 1;
5.9.58.49 0;
}
map $limit $limit_key {
0 "";
1 $http_x_forwarded_for;
}
limit_req_zone $limit_key zone=botlimit:10m rate=10r/s;
server { server {
listen 80; listen 80;
server_name _; server_name _;
...@@ -21,11 +9,9 @@ server { ...@@ -21,11 +9,9 @@ server {
root /var/www/spot; root /var/www/spot;
location = / { location = / {
limit_req zone=botlimit burst=10;
include /etc/nginx/proxy_spot_params; include /etc/nginx/proxy_spot_params;
} }
location = /search { location = /search {
limit_req zone=botlimit burst=10;
include /etc/nginx/proxy_spot_params; include /etc/nginx/proxy_spot_params;
} }
location / { location / {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment