From 4918a268111370f66e9824bd8bb028a63641acae Mon Sep 17 00:00:00 2001 From: Zachary Brown Date: Thu, 26 Sep 2024 13:11:14 -0700 Subject: [PATCH] remove nginx filter for units endpoint --- cadt/templates/cadt-proxy.inc.j2 | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/cadt/templates/cadt-proxy.inc.j2 b/cadt/templates/cadt-proxy.inc.j2 index 540e9ab6..b91e096d 100644 --- a/cadt/templates/cadt-proxy.inc.j2 +++ b/cadt/templates/cadt-proxy.inc.j2 @@ -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 }}/;