Skip to content

Fix for rate limit paths #575

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 23, 2022
Merged

Conversation

bbutkovic
Copy link
Contributor

No description provided.

@dpotkoc
Copy link
Contributor

dpotkoc commented Sep 22, 2022

@bbutkovic tested and works fine.

this is vcl chunk:

# Snippet magentomodule_rate_limiting_recv : 80
if (req.url.path ~ "^/fastly-io-tester$" || req.url.path ~ "^/test123") {
  if (req.http.Fastly-Client-Ip !~ maint_allowlist) {
      set req.http.Rate-Limit = "1";
      set req.http.X-Orig-Method = req.method;
      set req.hash_ignore_busy = true;
      if (req.method !~ "^(GET|POST)$") {
        set req.method = "POST";
      }
  }

@vvuksan vvuksan merged commit d8ccbed into fastly:master Sep 23, 2022
@vvuksan
Copy link
Contributor

vvuksan commented Sep 26, 2022

Released in 1.2.189+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants