Web Stack¶
Configuration¶
Sometimes you want to deploy the backend and frontend behind a
variable url path prefix. To do so, you can configure the url base_url
for instance, set it to http://localhost:28080/d12345
. All the APIs routes will
now be available through that additional d12345
prefix. Without rebuilding
the frontend, XHR requests and static file queries should be directed to the prefixed url
and served successfully.
You will also need to update the execution API server url execution_api_server_url for tasks to be able to reach the API with the new prefix.
Separating API Servers¶
By default, both the Core API Server and the Execution API Server are served together:
airflow api-server
# same as
airflow api-server --apps all
# or
airflow api-server --apps core,execution
If you want to separate the Core API Server and the Execution API Server, you can run them separately. This might be useful for scaling them independently or for deploying them on different machines.
# serve only the Core API Server
airflow api-server --apps core
# serve only the Execution API Server
airflow api-server --apps execution