Skip to content

Commit

Permalink
Merge pull request #385 from Chia-Network/remove-units-422-filter
Browse files Browse the repository at this point in the history
remove nginx filter for units endpoint
  • Loading branch information
TheLastCicada authored Sep 26, 2024
2 parents 58ccc89 + 4918a26 commit 716362d
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions cadt/templates/cadt-proxy.inc.j2
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
location {{ cadt_api_proxy_path }}v1/units {
# Enforce pagination on the units endpoint for stability
if ($arg_page = '') {
set $units422 1;
}
if ($arg_warehouseUnitId = '') {
set $units422 1$units422;
}
if ($units422 = 11) {
return 422;
}

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:{{ cadt_port }}/v1/units$is_args$args;
}

location {{ cadt_api_proxy_path }} {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:{{ cadt_port }}/;
Expand Down

0 comments on commit 716362d

Please sign in to comment.