Skip to content

Commit 8835ba9

Browse files
committed
[DDW-1203] Fail reqs with query string where it’s not needed
1 parent a08cfa8 commit 8835ba9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nix/oci-images.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,15 @@ if targetSystem == "x86_64-linux" then {
3535
root ${nginx}/html;
3636
}
3737
location = /api/v3/coins/list {
38+
if ( $args != "" ) { return 400; }
3839
${proxyConf}
3940
proxy_cache_valid 200 10m;
4041
proxy_cache_valid any 1m;
4142
set $coingecko https://api.coingecko.com;
4243
proxy_pass $coingecko;
4344
}
4445
location = /api/v3/simple/supported_vs_currencies {
46+
if ( $args != "" ) { return 400; }
4547
${proxyConf}
4648
proxy_cache_valid 200 10m;
4749
proxy_cache_valid any 1m;

0 commit comments

Comments
 (0)