Default xheaders to true

This commit is contained in:
Andrew Rabert 2020-08-31 13:38:59 -04:00
parent bc19924904
commit 7c5f9ca0dd
2 changed files with 2 additions and 2 deletions

View file

@ -55,7 +55,7 @@ def run(create_application, settings=None, log_config=_unspecified):
X-Real-IP, to get the user's IP address instead of attributing all X-Real-IP, to get the user's IP address instead of attributing all
traffic to the load balancer's IP address. When running behind a load traffic to the load balancer's IP address. When running behind a load
balancer like nginx, it is recommended to pass xheaders=True. The default balancer like nginx, it is recommended to pass xheaders=True. The default
value is False if nothing overrides it. value is True if nothing overrides it.
""" """
from . import runner from . import runner

View file

@ -77,7 +77,7 @@ class Runner:
""" """
signal.signal(signal.SIGTERM, self._on_signal) signal.signal(signal.SIGTERM, self._on_signal)
signal.signal(signal.SIGINT, self._on_signal) signal.signal(signal.SIGINT, self._on_signal)
xheaders = self.application.settings.get('xheaders', False) xheaders = self.application.settings.get('xheaders', True)
max_body_size = self.application.settings.get('max_body_size', None) max_body_size = self.application.settings.get('max_body_size', None)
max_buffer_size = self.application.settings.get('max_buffer_size', max_buffer_size = self.application.settings.get('max_buffer_size',
None) None)