Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

[documentation Label] Update needed in Documentation #864

Open
katesinclair91 opened this issue Nov 15, 2020 · 0 comments
Open

[documentation Label] Update needed in Documentation #864

katesinclair91 opened this issue Nov 15, 2020 · 0 comments

Comments

@katesinclair91
Copy link

@mattupstate
Links:
https://pythonhosted.org/Flask-Security/quickstart.html
https://flask-security.readthedocs.io/en/3.0.0/quickstart.html

Data there now

# At top of file
from werkzeug.config.fixers import ProxyFix

# After 'Create app'
app.wsgi_app = ProxyFix(app.wsgi_app, num_proxies=1)

To learn more about the ProxyFix middleware, please see the Werkzeug documentation.

Data to be updated

# At top of file
from werkzeug.middleware.proxy_fix import ProxyFix

# After 'Create app'
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_proto=1)

To learn more about the ProxyFix middleware, please see the <link>https://werkzeug.palletsprojects.com/en/1.0.x/middleware/proxy_fix/</link> Werkzeug documentation.

Reason

Changed in Werkzeu version 1.0: Deprecated code has been removed:
The num_proxies argument and attribute.

@katesinclair91 katesinclair91 changed the title Update needed in Documentation [documentation Label] Update needed in Documentation Nov 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant