Skip to content
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

Add support for limit_req_zone in main nginx config and limit_req: Fixes #1134 #1357

Merged
merged 5 commits into from
Nov 18, 2019

Conversation

absltkaos
Copy link
Contributor

Add support for limit_req_zone in main nginx config and limit_req
for nginx::resource::location.

In init.pp
limit_req_zone can be a String, or an array of String

In resource/location.pp
limit_zone can be a String and should point to a zone defined from
limit_req_zone in init.pp

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

Add support for `limit_req_zone` in main nginx config and `limit_req`
for `nginx::resource::location`.

In init.pp
`limit_req_zone` can be a String, or an array of String

In resource/location.pp
`limit_zone` can be a String and should point to a zone defined from
`limit_req_zone` in init.pp
@absltkaos absltkaos changed the title Fixes #1134 Add support for limit_req_zone in main nginx config and limit_req: Fixes #1134 Nov 13, 2019
manifests/init.pp Outdated Show resolved Hide resolved
@bastelfreak bastelfreak added enhancement New feature or request needs-tests labels Nov 16, 2019
@bastelfreak
Copy link
Member

Hi @absltkaos, thanks for the PR. can you add some unit tests for it?

absltkaos and others added 2 commits November 18, 2019 09:40
Co-Authored-By: Tim Meusel <tim@bastelfreak.de>
Co-Authored-By: Tim Meusel <tim@bastelfreak.de>
@absltkaos
Copy link
Contributor Author

Hi @absltkaos, thanks for the PR. can you add some unit tests for it?

I'm not super familiar with Rspec, but I'll see what I can do.

@bastelfreak
Copy link
Member

thanks!

@bastelfreak bastelfreak merged commit 380c1c9 into voxpupuli:master Nov 18, 2019
@absltkaos absltkaos deleted the add_limit_req_support branch November 18, 2019 20:15
Rubueno pushed a commit to Rubueno/puppet-nginx that referenced this pull request Oct 19, 2020
Add support for limit_req_zone in main nginx config and limit_req: Fixes voxpupuli#1134
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants