recipe: harden auth/metrics, add rate limiting and tests
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
location = /recipe {
|
||||
limit_req zone=recipe_api_per_ip burst=5 nodelay;
|
||||
proxy_pass http://127.0.0.1:8770/recipe;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
@@ -12,6 +13,7 @@ location = /recipe {
|
||||
}
|
||||
|
||||
location /recipe/ {
|
||||
limit_req zone=recipe_api_per_ip burst=5 nodelay;
|
||||
proxy_pass http://127.0.0.1:8770/recipe/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
@@ -25,6 +27,7 @@ location /recipe/ {
|
||||
}
|
||||
|
||||
location = /receipt {
|
||||
limit_req zone=recipe_api_per_ip burst=5 nodelay;
|
||||
proxy_pass http://127.0.0.1:8770/receipt;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
@@ -38,6 +41,7 @@ location = /receipt {
|
||||
}
|
||||
|
||||
location /receipt/ {
|
||||
limit_req zone=recipe_api_per_ip burst=5 nodelay;
|
||||
proxy_pass http://127.0.0.1:8770/receipt/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
|
||||
Reference in New Issue
Block a user