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

Commit

Permalink
Merge 6acb5dd into 674b181
Browse files Browse the repository at this point in the history
  • Loading branch information
dgabriel123 committed Jan 25, 2021
2 parents 674b181 + 6acb5dd commit 5ffc1fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,10 @@ in HTTP proxy environment. The following code illustrates a setup
with a single HTTP proxy in front of the web application::

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

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

To learn more about the ``ProxyFix`` middleware, please see the
`Werkzeug documentation <http://werkzeug.pocoo.org/docs/latest/contrib/fixers/#werkzeug.contrib.fixers.ProxyFix>`_.

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

0 comments on commit 5ffc1fc

Please sign in to comment.