|
@@ -20,7 +20,7 @@ server {
|
|
}
|
|
}
|
|
|
|
|
|
location / {
|
|
location / {
|
|
- limit_req zone=perip-dyndns;
|
|
|
|
|
|
+ limit_req zone=perip-api;
|
|
|
|
|
|
include uwsgi_params;
|
|
include uwsgi_params;
|
|
rewrite ^(.*)$ /api/v1/dyndns/update?$1 break;
|
|
rewrite ^(.*)$ /api/v1/dyndns/update?$1 break;
|
|
@@ -53,8 +53,7 @@ server {
|
|
}
|
|
}
|
|
|
|
|
|
location / {
|
|
location / {
|
|
- # max .5r/s to the API per IP. Allow burst as some people update multiple domains via cron.
|
|
|
|
- limit_req zone=perip-api burst=10 nodelay;
|
|
|
|
|
|
+ limit_req zone=perip-api;
|
|
|
|
|
|
include uwsgi_params;
|
|
include uwsgi_params;
|
|
rewrite ^(.*)$ /api/v1/dyndns/update?$1 break;
|
|
rewrite ^(.*)$ /api/v1/dyndns/update?$1 break;
|
|
@@ -82,8 +81,7 @@ server {
|
|
}
|
|
}
|
|
|
|
|
|
location / {
|
|
location / {
|
|
- # max .5r/s to the API per IP. Allow burst as some people update multiple domains via cron.
|
|
|
|
- limit_req zone=perip-api burst=10 nodelay;
|
|
|
|
|
|
+ limit_req zone=perip-api;
|
|
|
|
|
|
include uwsgi_params;
|
|
include uwsgi_params;
|
|
rewrite ^(.*)$ /api/v1/dyndns/update?$1 break;
|
|
rewrite ^(.*)$ /api/v1/dyndns/update?$1 break;
|