blob: 49a1b5f780c9fb23a1dc4bdf41242297d580a723 [file]
# 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 dispatcher service.
# Note that routes that redirects to the `/ui/*` routes (e.g. `/ui`, `/`) are
# not handled by the UI services themselves.
- url: "*/ui/*"
service: ui-dispatcher
# The UI service also serve its own version.
- url: "*/ui_version.js"
service: ui-dispatcher
# Route the dispatched UI requests to the corresponding services.
- url: "*/new-ui/*"
service: ui-new
- url: "*/old-ui/*"
service: ui-old
# All other requests are routed to the 'default' service by default.