fizcris opened a new issue, #54402: URL: https://github.com/apache/airflow/issues/54402
### Apache Airflow version 3.0.4 ### If "Other Airflow 2 version" selected, which one? _No response_ ### What happened? Setting the environment variable to a subpath like: `AIRFLOW__API__BASE_URL=http://myDomain.com/airflow` results in a commented configuration entry: ``` > airflow config list | sed -n '/^\[api\]/,/^\[/p' [api] enable_swagger_ui = True secret_key = MY_SUPER_SECRET_KEY expose_config = False expose_stacktrace = False # base_url = host = 0.0.0.0 port = 8080 ``` And hence the assets are being served to the incorrect base path: ``` <!doctype html> <html lang="en" style="height: 100%"> <head> <meta charset="UTF-8" /> <base href="/" /> <link rel="icon" type="image/png" href="./static/pin_32.png" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Airflow</title> <script type="module" crossorigin src="./static/assets/index-qxQfF20W.js"></script> </head> <body style="height: 100%"> <div id="root" style="height: 100%"></div> </body> </html> ``` ### What you think should happen instead? `base_url` should be properly set from the environment variable ### How to reproduce Set `AIRFLOW__API__BASE_URL=http://myDomain.com/airflow` and see how `base_url` does not change. ### Operating System Ubuntu and Docker compose ### Versions of Apache Airflow Providers _No response_ ### Deployment Docker-Compose ### Deployment details _No response_ ### Anything else? _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
