1# Copyright (C) 2019 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15runtime: python27
16service: controller
17api_version: 1
18threadsafe: yes
19
20# B4 := 2.4 GHz 1024 MB
21instance_class: B4
22manual_scaling:
23  instances: 1
24
25# Login: admin is to avoid exposing the controller to the public and directly
26# poking at its internals. These endpoints are hit only by the tasks posted
27# by the controller itself. Everything happens as a continuation of either the
28# /_ah/start call or the Cron job calls (see cron.yaml).
29handlers:
30- url: (/controller/.*)|(/_ah/.*)
31  script: controller.app
32  login: admin
33