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

net/haproxy: a 'http-request' rule placed after a 'use_backend' rule will still be processed before #1000

Closed
mathiasaerts opened this issue Nov 19, 2018 · 1 comment
Assignees

Comments

@mathiasaerts
Copy link
Contributor

When adding an HTTP to HTTPS redirect for some URLs in the haproxy configuration, I was getting the warning messages below. use_backend and http-request rules are added to the haproxy frontend section in no specific order.

image

I've adjusted the template so that use_* statements are always last in the frontend section. I tried to simplify the code as much as possible (with my limited Jinja2 knowledge) but perhaps there is a better way. I've also removed some extra newlines to keep the generated config file clean.

I'm running Opnsense 18.7.7 and noticed that the template is a bit different from the master branch. I've made and tested my adjustments with this version before rebasing (dee6c58) with the current master branch (not sure how to test this).

Pull request: #999

@fraenki fraenki self-assigned this Nov 19, 2018
@mathiasaerts
Copy link
Contributor Author

Closed since #999 was merged

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

No branches or pull requests

2 participants