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

Avoid spurious location block when redirecting to SSL in another server block #1066

Merged
merged 1 commit into from
Apr 13, 2017

Conversation

oranenj
Copy link
Contributor

@oranenj oranenj commented Apr 6, 2017

Fixes #1029

I'm pretty sure this is sane behaviour. Any thoughts?

@wyardley
Copy link
Collaborator

wyardley commented Apr 7, 2017

@oranenj
Even though I updated some of this code not that long ago, this is still making my head hurt to re-read.
That said, did you look through
https://github.com/voxpupuli/puppet-nginx/blob/master/manifests/resource/location.pp#L273-L288 too?

I think this looks sane from a quick read, though I wonder if there's a way to rework the logic to be a bit easier to read

@oranenj
Copy link
Contributor Author

oranenj commented Apr 9, 2017

@wyardley: The current logic is a bit hard to keep track of, yes, but I think the location resource works as it should. At least, I didn't spot any obvious issues with it.

Refactoring the whole thing would take more effort than I have time to spend on this at the moment. :/

@wyardley
Copy link
Collaborator

@oranenj Yeah, no worries! From my end this looks good, but would like to see another reviewer as well.

@wyardley wyardley self-requested a review April 10, 2017 17:23
Copy link
Collaborator

@wyardley wyardley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, hopefully one other person can review?

@vinzent vinzent added the enhancement New feature or request label Apr 11, 2017
@juniorsysadmin juniorsysadmin merged commit b0aca7e into voxpupuli:master Apr 13, 2017
cegeka-jenkins pushed a commit to cegeka/puppet-nginx that referenced this pull request Sep 13, 2019
Avoid spurious location block when redirecting to SSL in another server block
Rubueno pushed a commit to Rubueno/puppet-nginx that referenced this pull request Oct 19, 2020
Avoid spurious location block when redirecting to SSL in another server block
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.

4 participants