You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Matthew Byng-Maddick (JIRA)" <ji...@apache.org> on 2019/05/14 15:20:00 UTC

[jira] [Created] (AIRFLOW-4517) origin scheme and other flask-based configurations cannot be set

Matthew Byng-Maddick created AIRFLOW-4517:
---------------------------------------------

             Summary: origin scheme and other flask-based configurations cannot be set
                 Key: AIRFLOW-4517
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4517
             Project: Apache Airflow
          Issue Type: Bug
          Components: cli, webserver
    Affects Versions: 1.10.3
            Reporter: Matthew Byng-Maddick
         Attachments: airflow_flask_web.patch

{{airflow/cli.py:webserver()}} contains the ability through {{cache_app()}} and {{create_app()}} (and the RBAC versions) to configure flask, but then nails them to {{None}}.

The attached patch (against v1-10-stable) adds a new "flask_web" section to the configuration where keys are upper-cased and then sent to the flask configuration. This allows one to set the flask {{PREFERRED_URL_SCHEME}} configuration which affects the {{origin=}} url-parameter for re-triggering (this one should probably be handled better, but this allows one to work around in flask) on the main admin dags.html view.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)