Skip to content

Commit

Permalink
Loadtesting updates (#584)
Browse files Browse the repository at this point in the history
* increased rate limit, adjusted error code
  • Loading branch information
vivid-cpreston authored Jan 26, 2023
1 parent 41281c9 commit 89c71b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker/default.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
limit_req_zone $binary_remote_addr zone=wfnewslimit:10m rate=20r/s;
limit_req_zone $binary_remote_addr zone=wfnewslimit:10m rate=10000r/s;


server {
Expand All @@ -7,16 +7,16 @@ server {

location /_validate_apikey {
internal;

if ($http_apikey != {API_KEY}) {
return 401;
return 403;
}

return 204;
}

location / {
limit_req zone=wfnewslimit burst=20 nodelay;
limit_req zone=wfnewslimit burst=10000 nodelay;
auth_request /_validate_apikey;

proxy_pass https://wfnews-server.{LICENSE_PLATE}-{TARGET_ENV}.nimbus.cloud.gov.bc.ca;
Expand Down

0 comments on commit 89c71b4

Please sign in to comment.