blob: b865d5bb20e8ce46bbbfecfa61c47f2a6b6df72e [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001# Copyright 2019 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style
3# license that can be found in the LICENSE file or at
4# https://developers.google.com/open-source/licenses/bsd
5
6service: api
7runtime: python27
8api_version: 1
9threadsafe: no
10
11define(`_VERSION', `syscmd(`echo $_VERSION')')
12
13ifdef(`PROD', `
14instance_class: F4
15automatic_scaling:
16 min_idle_instances: 25
17 max_pending_latency: 0.2s
18')
19
20ifdef(`STAGING', `
21instance_class: F4
22automatic_scaling:
23 min_idle_instances: 5
24 max_pending_latency: 0.2s
25')
26
27ifdef(`DEV', `
28instance_class: F4
29automatic_scaling:
30 min_idle_instances: 5
31')
32
33handlers:
34- url: /prpc/.*
35 script: monorailapp.app
36 secure: always
37- url: /_ah/warmup
38 script: monorailapp.app
39 login: admin
40
41inbound_services:
42ifdef(`PROD', `
43- warmup
44')
45ifdef(`STAGING', `
46- warmup
47')
48
49libraries:
50- name: endpoints
51 version: 1.0
52- name: grpcio
53 version: 1.0.0
54- name: MySQLdb
55 version: "latest"
56- name: ssl # needed for google.auth.transport
57 version: "2.7.11"
58
59includes:
60- gae_ts_mon
61
62env_variables:
63 VERSION_ID: '_VERSION'
64 GAE_USE_SOCKETS_HTTPLIB : ''
65
66vpc_access_connector:
67ifdef(`DEV',`
68 name: "projects/monorail-dev/locations/us-central1/connectors/redis-connector"
69')
70ifdef(`STAGING',`
71 name: "projects/monorail-staging/locations/us-central1/connectors/redis-connector"
72')
73ifdef(`PROD', `
74 name: "projects/monorail-prod/locations/us-central1/connectors/redis-connector"
75')
76
77skip_files:
78- ^(.*/)?#.*#$
79- ^(.*/)?.*~$
80- ^(.*/)?.*\.py[co]$
81- ^(.*/)?.*/RCS/.*$
82- ^(.*/)?\..*$
83- node_modules/
84- static/
85- schema/
86- doc/
87- tools/
88- venv/