gschuurman commented on issue #49781:
URL: https://github.com/apache/airflow/issues/49781#issuecomment-2837915492

   I managed to get it working, in your webserver_config.py you need to add 
some code:
   
   ``` python
   from flask import current_app
   from werkzeug.middleware.proxy_fix import ProxyFix
   
   if conf.getboolean("webserver", "ENABLE_PROXY_FIX"):
       current_app.wsgi_app = ProxyFix(  # type: ignore
           current_app.wsgi_app,
           x_for=conf.getint("webserver", "PROXY_FIX_X_FOR", fallback=1),
           x_proto=conf.getint("webserver", "PROXY_FIX_X_PROTO", fallback=1),
           x_host=conf.getint("webserver", "PROXY_FIX_X_HOST", fallback=1),
           x_port=conf.getint("webserver", "PROXY_FIX_X_PORT", fallback=1),
           x_prefix=conf.getint("webserver", "PROXY_FIX_X_PREFIX", fallback=1),
   ``
   
   By doing this the proxy_headers will be set correctly for all calls to 
flask_app_builder.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to