blob: ba3b2e4fa88a3df084870cefe016689183c2df35 [file] [log] [blame]
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +01001# Copyright 2019 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
Copybara854996b2021-09-07 19:36:02 +00004
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +01005runtime: python39
6app_engine_apis: true
7
Adrià Vilanova Martínez0ae79a72024-01-26 21:14:10 +01008entrypoint: gunicorn -b :$PORT --timeout 60 --workers 2 --threads 1 main:app
Copybara854996b2021-09-07 19:36:02 +00009
10default_expiration: "10d"
11
Adrià Vilanova Martínez515639b2021-07-06 16:43:59 +020012instance_class: F1
Copybara854996b2021-09-07 19:36:02 +000013automatic_scaling:
Adrià Vilanova Martínez515639b2021-07-06 16:43:59 +020014 min_pending_latency: 15000ms
15 max_pending_latency: 15000ms
Adrià Vilanova Martínezf779fa02022-04-03 21:01:25 +020016 min_instances: 0
Adrià Vilanova Martínez515639b2021-07-06 16:43:59 +020017 max_instances: 1
18 max_concurrent_requests: 80
Copybara854996b2021-09-07 19:36:02 +000019
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +010020env_variables:
21 # https://cloud.google.com/appengine/docs/standard/python3/services/access#compatibility
22 MEMCACHE_USE_CROSS_COMPATIBLE_PROTOCOL: "True"
23 NDB_USE_CROSS_COMPATIBLE_PICKLE_PROTOCOL: "True"
24
Copybara854996b2021-09-07 19:36:02 +000025handlers:
26- url: /_ah/api/.*
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +010027 script: main.app
Copybara854996b2021-09-07 19:36:02 +000028
29- url: /robots.txt
30 static_files: static/robots.txt
31 upload: static/robots.txt
32 expiration: "10m"
33
34- url: /database-maintenance
35 static_files: static/database-maintenance.html
36 upload: static/database-maintenance.html
37
38- url: /static/dist
39 static_dir: static/dist
40 mime_type: application/javascript
41 secure: always
42 http_headers:
43 Access-Control-Allow-Origin: '*'
44
45- url: /static/js
46 static_dir: static/js
47 mime_type: application/javascript
48 secure: always
49 http_headers:
50 Access-Control-Allow-Origin: '*'
51
52- url: /static
53 static_dir: static
54
55- url: /_ah/mail/.+
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +010056 script: main.app
Copybara854996b2021-09-07 19:36:02 +000057 login: admin
58
59- url: /_ah/warmup
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +010060 script: main.app
Copybara854996b2021-09-07 19:36:02 +000061 login: admin
62
63- url: /.*
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +010064 script: main.app
Copybara854996b2021-09-07 19:36:02 +000065 secure: always
66
Adrià Vilanova Martínez515639b2021-07-06 16:43:59 +020067# From api service:
68- url: /prpc/.*
69 script: monorailapp.app
70 secure: always
71
72# From besearch service
73- url: /_backend/.*
74 script: monorailapp.app
75
76# From latency-insensitive service
77- url: /_task/.*
78 script: monorailapp.app
79 login: admin
80
81- url: /_cron/.*
82 script: monorailapp.app
83 login: admin
84
Copybara854996b2021-09-07 19:36:02 +000085inbound_services:
86- mail
87- mail_bounce
Copybara854996b2021-09-07 19:36:02 +000088- warmup
Copybara854996b2021-09-07 19:36:02 +000089
Copybara854996b2021-09-07 19:36:02 +000090includes:
91- gae_ts_mon