Adrià Vilanova Martínez | f19ea43 | 2024-01-23 20:20:52 +0100 | [diff] [blame] | 1 | # 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. |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 4 | |
Adrià Vilanova Martínez | f19ea43 | 2024-01-23 20:20:52 +0100 | [diff] [blame] | 5 | runtime: python39 |
| 6 | app_engine_apis: true |
| 7 | |
Adrià Vilanova Martínez | 0ae79a7 | 2024-01-26 21:14:10 +0100 | [diff] [blame] | 8 | entrypoint: gunicorn -b :$PORT --timeout 60 --workers 2 --threads 1 main:app |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 9 | |
| 10 | default_expiration: "10d" |
| 11 | |
Adrià Vilanova Martínez | 515639b | 2021-07-06 16:43:59 +0200 | [diff] [blame] | 12 | instance_class: F1 |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 13 | automatic_scaling: |
Adrià Vilanova Martínez | 515639b | 2021-07-06 16:43:59 +0200 | [diff] [blame] | 14 | min_pending_latency: 15000ms |
| 15 | max_pending_latency: 15000ms |
Adrià Vilanova Martínez | f779fa0 | 2022-04-03 21:01:25 +0200 | [diff] [blame] | 16 | min_instances: 0 |
Adrià Vilanova Martínez | 515639b | 2021-07-06 16:43:59 +0200 | [diff] [blame] | 17 | max_instances: 1 |
| 18 | max_concurrent_requests: 80 |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 19 | |
Adrià Vilanova Martínez | f19ea43 | 2024-01-23 20:20:52 +0100 | [diff] [blame] | 20 | env_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 | |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 25 | handlers: |
| 26 | - url: /_ah/api/.* |
Adrià Vilanova Martínez | f19ea43 | 2024-01-23 20:20:52 +0100 | [diff] [blame] | 27 | script: main.app |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 28 | |
| 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ínez | f19ea43 | 2024-01-23 20:20:52 +0100 | [diff] [blame] | 56 | script: main.app |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 57 | login: admin |
| 58 | |
| 59 | - url: /_ah/warmup |
Adrià Vilanova Martínez | f19ea43 | 2024-01-23 20:20:52 +0100 | [diff] [blame] | 60 | script: main.app |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 61 | login: admin |
| 62 | |
| 63 | - url: /.* |
Adrià Vilanova Martínez | f19ea43 | 2024-01-23 20:20:52 +0100 | [diff] [blame] | 64 | script: main.app |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 65 | secure: always |
| 66 | |
Adrià Vilanova Martínez | 515639b | 2021-07-06 16:43:59 +0200 | [diff] [blame] | 67 | # 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 | |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 85 | inbound_services: |
| 86 | - mail |
| 87 | - mail_bounce |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 88 | - warmup |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 89 | |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 90 | includes: |
| 91 | - gae_ts_mon |