Airflow + Nginx 设置导致 Airflow 404 = 很多圆圈

Airflow + Nginx 设置导致 Airflow 404 = 很多圆圈

我正在尝试使用给出的说明在 nginx 后面设置 Airflow这里

airflow.cfg 文件

base_url = https://myorg.com/airflow
web_server_port = 8081
.
.
.
enable_proxy_fix = True

nginx 配置

server {
    listen 443 ssl http2 default_server;
    server_name myorg.com;
    .
    .
    .

    location /airflow {
        proxy_pass http://localhost:8081;
        proxy_set_header Host $host;
        proxy_redirect off;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header X-Forwarded-Proto "https";
    }
}

Airflow Web 服务器和调度程序已作为 systemd 启动并运行。当我尝试访问https://myorg.com/airflow/, 它给气流 404 = 很多圆圈

可能出了什么问题?非常感谢您的帮助。

相关内容