Skip to content

Commit

Permalink
Test rate limits
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-karwacki-rdx committed Mar 11, 2024
1 parent 856866b commit 65a5264
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
dockerfile: "./Dockerfile.alpine"
platforms: "linux/amd64,linux/arm64"
# optimizations
cache_tag_suffix: "pr2"
cache_tag_suffix: "pr"
scan_image: true
snyk_target_ref: ${{ github.ref_name }}

Expand Down
4 changes: 2 additions & 2 deletions conf.d/enable-rate-limits.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ map $limit $limit_key {
1 $http_x_forwarded_for;
}

limit_req_zone $binary_remote_addr zone=perip:10m rate=1r/s;
limit_req_log_level info;
limit_req_zone $limit_key zone=perip:10m rate=1r/s;
limit_req_log_level notice;

0 comments on commit 65a5264

Please sign in to comment.