Use Forwarded/X-Forwarded-{For,Host,By,Port,Proto} to fixup environ

This will trust the proxy provided information and override the default
provided by waitress.

This is useful when using Waitress behind nginx or some other proxy to
make sure the WSGI environment contains all of the appropriate
settings/updates.
2 files changed