Apache Airflow:未读取 Gunicorn 配置文件?

Apache Airflow: Gunicorn Configuration File Not Being Read?

我正在尝试从 Redhat 机器上的 virtualenv 运行 Apache Airflow 的网络服务器,使用 Gunicorn 配置文件中的一些配置选项。 Gunicorn 和 Airflow 都安装在 virtualenv 中。命令 airflow webserver 启动 Airflow 的网络服务器和 Gunicorn 服务器。配置文件具有确保 Gunicorn uses/accepts 仅 TLSv1.2 的选项,以及要使用的密码列表。

Gunicorn 配置文件是 gunicorn.py。此文件通过 .bashrc 中的环境变量 GUNICORN_CMD_ARGS="--config=/path/to/gunicorn.py ..." 引用。除了 --config 之外,该变量还设置了其他几个变量。但是,当我 运行 命令 airflow webserver 时,GUNICORN_CMD_ARGS 中的选项永远不会应用。

看到 Gunicorn 不是从命令行调用的,而是通过 Airflow 调用的,我假设这就是 GUNICORN_CMD_ARGS 环境变量未被读取的原因,但我不确定而且我是两种技术的新手...

长话短说: 有没有另一种方法可以将 Gunicorn 设置为自动引用配置文件,而无需 GUNICORN_CMD_ARGS 环境变量?

这是我正在使用的:

当 Gunicorn 被 Airflow 调用时,它使用 ~\airflow\www\gunicorn_config.py 作为它的配置文件。