This is an automated email from the ASF dual-hosted git repository.
amoghdesai pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 4c710307378 Remove flask application configuration from docs for AF3
(#49393)
4c710307378 is described below
commit 4c710307378763d8c23371bf5a31f9f2d34dc101
Author: Amogh Desai <[email protected]>
AuthorDate: Mon Apr 21 12:32:26 2025 +0530
Remove flask application configuration from docs for AF3 (#49393)
---
airflow-core/docs/howto/set-config.rst | 24 ------------------------
1 file changed, 24 deletions(-)
diff --git a/airflow-core/docs/howto/set-config.rst
b/airflow-core/docs/howto/set-config.rst
index 2ff69415964..60b92f29c08 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 <customizing-the-ui>`
* :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")