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

Update ProxyFix to work with Werkzeug 0.15 #91

Closed
wants to merge 3 commits into from

Conversation

samdbmg
Copy link
Member

@samdbmg samdbmg commented Mar 25, 2019

Werkzeug 0.15 makes some changes to ProxyFix to move where it is imported from and use a different signature - this makes the corresponding changes in nmos-common.

  • Changes import
  • Changes signature
  • Adds support for trusting multiple layers of proxy
  • Bumps version: 0.17.2

I'm not completely sure how this is going to interact with the Debian packages though, which I suspect are still on an older version of Werkzeug. I suppose we could pin it back instead?

Makes it possible to set `fix_proxy` to a number, in which case this is
the number of proxy headers to trust.
Preserves previous "enabled"/"disabled" behaviour as well.
Update ProxyFix import location to match Werkzeug 0.15
Enable "fixing" more than one layer of proxy.
Copy link
Contributor

@andrewbonney andrewbonney left a comment

Choose a reason for hiding this comment

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

We're going to need to update our Debian werkzeug backport before this can be merged

@samdbmg
Copy link
Member Author

samdbmg commented Mar 25, 2019

Closing in favour of #93

@samdbmg samdbmg closed this Mar 25, 2019
@samdbmg samdbmg deleted the sammg-update-proxyfix branch August 14, 2020 16:12
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.

None yet

2 participants