blob: 8c844be75253efec7f29f78c5e2144a1a5e9ddaf [file] [log] [blame]
# Copyright 2024 The LUCI Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
dispatch:
# Note that the glob syntax here has a particular interpretation:
# https://cloud.google.com/appengine/docs/legacy/standard/python/reference/dispatch-yaml#syntax
# Route API requests to the API service.
# Note that most of the requests that hit the API service were sent to the
# *.api.luci.app domain and got routed to the API service through URL mapping on
# the load balancer. This dispatch file has no effect on those requests.
- url: "*/internal/*"
service: api
- url: "*/prpc/*"
service: api
- url: "*/rpcexplorer"
service: api
- url: "*/rpcexplorer/*"
service: api
# Route UI requests to the UI service.
# Note that routes that redirects to the `/ui/*` routes (e.g. `/ui`, `/`) are
# not handled by the UI service itself.
- url: "*/ui/*"
service: ui
# Additionally, the UI service serves the root service worker script.
- url: "*/root_sw.js"
service: ui
- url: "*/root_sw.js.map"
service: ui
# The UI service also serve its own version.
- url: "*/ui_version.js"
service: ui
# All other requests are routed to the 'default' service by default.