blob: 554562ede27b3c1d6e651f50d449b734411cbdf8 [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001# Copyright 2018 The Chromium Authors. All rights reserved.
2# Use of this source code is govered 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
6define(`_VERSION', `syscmd(`echo $_VERSION')')
7
8service: latency-insensitive
9runtime: python27
10api_version: 1
11threadsafe: no
12
13default_expiration: "3600d"
14
15ifdef(`PROD', `
16instance_class: F4
17automatic_scaling:
18 min_idle_instances: 5
19 max_pending_latency: 0.2s
20')
21
22ifdef(`STAGING', `
23instance_class: F4
24automatic_scaling:
25 min_idle_instances: 5
26 max_pending_latency: 0.2s
27')
28
29ifdef(`DEV', `
30instance_class: F4
31automatic_scaling:
32 min_idle_instances: 1
33')
34
35handlers:
36- url: /_ah/warmup
37 script: monorailapp.app
38 login: admin
39
40- url: /_ah/api/.*
41 script: monorailapp.endpoints
42
43- url: /_task/.*
44 script: monorailapp.app
45 login: admin
46
47- url: /_cron/.*
48 script: monorailapp.app
49 login: admin
50
51- url: /_ah/mail/.*
52 script: monorailapp.app
53 login: admin
54
55inbound_services:
56- mail
57- mail_bounce
58ifdef(`PROD', `
59- warmup
60')
61ifdef(`STAGING', `
62- warmup
63')
64
65libraries:
66- name: endpoints
67 version: 1.0
68- name: grpcio
69 version: 1.0.0
70- name: MySQLdb
71 version: "latest"
72- name: ssl
73 version: latest
74
75includes:
76- gae_ts_mon
77
78env_variables:
79 VERSION_ID: '_VERSION'
80 GAE_USE_SOCKETS_HTTPLIB: ''
81
82vpc_access_connector:
83ifdef(`DEV',`
84 name: "projects/monorail-dev/locations/us-central1/connectors/redis-connector"
85')
86ifdef(`STAGING',`
87 name: "projects/monorail-staging/locations/us-central1/connectors/redis-connector"
88')
89ifdef(`PROD', `
90 name: "projects/monorail-prod/locations/us-central1/connectors/redis-connector"
91')
92
93skip_files:
94- ^(.*/)?#.*#$
95- ^(.*/)?.*~$
96- ^(.*/)?.*\.py[co]$
97- ^(.*/)?.*/RCS/.*$
98- ^(.*/)?\..*$
99- node_modules/
100- venv/