diff --git a/wsgi.py b/wsgi.py index 7631345..3a4b70b 100644 --- a/wsgi.py +++ b/wsgi.py @@ -34,4 +34,10 @@ if __name__ == '__main__': # Graceful shutdown settings channel_timeout=30, # Seconds to wait for in-flight requests cleanup_interval=30, - ) \ No newline at end of file + # Waitress Proxy Settings + trusted_proxy='*', + trusted_proxy_count=1, + trusted_proxy_headers={'x-forwarded-for', 'x-forwarded-proto'}, + clear_untrusted_proxy_headers=True + ) + \ No newline at end of file