This is an automated email from the ASF dual-hosted git repository. amoghdesai pushed a commit to branch flask-doc-removal in repository https://gitbox.apache.org/repos/asf/airflow.git
commit c902bb46e0731726072be11df2fb8eb6f1912327 Author: Amogh Desai <amoghrajesh1...@gmail.com> AuthorDate: Thu Apr 17 13:53:26 2025 +0530 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 b25bf3470a8..4bcb78772d0 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 <export_dynamic_environment_variables>` * :ref:`Customize your DB configuration <set-up-database-backend>` - -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 <https://flask.palletsprojects.com/en/2.3.x/appcontext/>`_ 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")