Skip to content

Commit 5115a2d

Browse files
RazvanLiviuVarzarufauust
authored andcommitted
Restrict buldsets API usage without query params
Related to MariaDB#794
1 parent af65f3a commit 5115a2d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docker-compose/nginx/templates/bb.conf.template

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ server {
5454
proxy_pass http://127.0.0.1:8010;
5555
}
5656

57+
location = /api/v2/buildsets {
58+
if ($args = "") {
59+
return 403 "Not allowed.\n";
60+
}
61+
proxy_pass http://127.0.0.1:8010;
62+
}
63+
5764
# disallow bots
5865
location = /robots.txt {
5966
add_header Content-Type text/plain;

0 commit comments

Comments
 (0)