From c902bb46e0731726072be11df2fb8eb6f1912327 Mon Sep 17 00:00:00 2001 From: Amogh Desai Date: Thu, 17 Apr 2025 13:53:26 +0530 Subject: [PATCH 1/2] Remove flask application configuration from docs for AF3 We do not need this anymore as UI is fastapi + react based. --- airflow-core/docs/howto/set-config.rst | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/airflow-core/docs/howto/set-config.rst b/airflow-core/docs/howto/set-config.rst index b25bf3470a85f..4bcb78772d072 100644 --- a/airflow-core/docs/howto/set-config.rst +++ b/airflow-core/docs/howto/set-config.rst @@ -197,26 +197,3 @@ Example settings you can configure this way: * :ref:`Configure more variables to export ` * :ref:`Customize your DB configuration ` - -Configuring Flask Application for Airflow Webserver -=================================================== - -Airflow uses Flask to render the web UI. When you initialize the Airflow webserver, predefined configuration -is used, based on the ``webserver`` section of the ``airflow.cfg`` file. You can override these settings -and add any extra settings however by adding flask configuration to ``webserver_config.py`` file in your -``$AIRFLOW_HOME`` directory. This file is automatically loaded by the webserver. - -For example if you would like to change rate limit strategy to "moving window", you can set the -``RATELIMIT_STRATEGY`` to ``moving-window``. - -You could also enhance / modify the underlying flask app directly, -as the `app context `_ is pushed to ``webserver_config.py``: - -.. code-block:: python - - from flask import current_app as app - - - @app.before_request - def print_custom_message() -> None: - print("Executing before every request") From c9be03f89133225b5b223f0fa595a25b96fe89e5 Mon Sep 17 00:00:00 2001 From: Amogh Desai Date: Thu, 17 Apr 2025 16:44:30 +0530 Subject: [PATCH 2/2] remove line --- airflow-core/docs/howto/set-config.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/airflow-core/docs/howto/set-config.rst b/airflow-core/docs/howto/set-config.rst index 4bcb78772d072..d95f9b9f956e6 100644 --- a/airflow-core/docs/howto/set-config.rst +++ b/airflow-core/docs/howto/set-config.rst @@ -196,4 +196,3 @@ Example settings you can configure this way: * :ref:`Customize your UI ` * :ref:`Configure more variables to export ` * :ref:`Customize your DB configuration ` -