diff --git a/airflow-core/docs/howto/set-config.rst b/airflow-core/docs/howto/set-config.rst index b25bf3470a85f..d95f9b9f956e6 100644 --- a/airflow-core/docs/howto/set-config.rst +++ b/airflow-core/docs/howto/set-config.rst @@ -196,27 +196,3 @@ Example settings you can configure this way: * :ref:`Customize your UI ` * :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")