Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions providers/fab/docs/auth-manager/configuring-flask-app.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
specific language governing permissions and limitations
under the License.

Configuring Flask Application for Airflow Webserver
===================================================

``FabAuthManager`` and Airflow 2 plugins uses Flask to render the web UI.When initialized, predefined configuration
is used, based on the ``webserver`` section of the ``airflow.cfg`` file. You can override these settings
and add any extra settings by adding flask configuration to ``webserver_config.py`` file specified in ``[fab] config_file`` (by default it is ``$AIRFLOW_HOME/webserver_config.py``). This file is automatically loaded by the webserver.
Configuring the Flask Application for the Airflow UI
====================================================

``FabAuthManager`` uses Flask to render the Airflow UI. When initialized, it uses predefined
configuration based on the ``webserver`` section of ``airflow.cfg``. You can override these
settings and add extra Flask configuration in the ``webserver_config.py`` file specified by
``[fab] config_file`` (by default ``$AIRFLOW_HOME/webserver_config.py``). This file is
automatically loaded by the FAB auth manager.

For example if you would like to change rate limit strategy to "moving window", you can set the
``RATELIMIT_STRATEGY`` to ``moving-window``.
Expand Down
Loading