Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 1 | # Copyright 2019 The Chromium Authors. All rights reserved. |
Adrià Vilanova Martínez | 2d5457a | 2022-01-13 13:25:39 +0100 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 3 | # license that can be found in the LICENSE file or at |
| 4 | # https://developers.google.com/open-source/licenses/bsd |
| 5 | |
| 6 | runtime: python27 |
| 7 | api_version: 1 |
Adrià Vilanova Martínez | 515639b | 2021-07-06 16:43:59 +0200 | [diff] [blame] | 8 | threadsafe: yes |
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 |
| 16 | min_instances: 1 |
| 17 | max_instances: 1 |
| 18 | max_concurrent_requests: 80 |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 19 | |
| 20 | handlers: |
| 21 | - url: /_ah/api/.* |
| 22 | script: monorailapp.endpoints |
| 23 | |
| 24 | - url: /robots.txt |
| 25 | static_files: static/robots.txt |
| 26 | upload: static/robots.txt |
| 27 | expiration: "10m" |
| 28 | |
| 29 | - url: /database-maintenance |
| 30 | static_files: static/database-maintenance.html |
| 31 | upload: static/database-maintenance.html |
| 32 | |
| 33 | - url: /static/dist |
| 34 | static_dir: static/dist |
| 35 | mime_type: application/javascript |
| 36 | secure: always |
| 37 | http_headers: |
| 38 | Access-Control-Allow-Origin: '*' |
| 39 | |
| 40 | - url: /static/js |
| 41 | static_dir: static/js |
| 42 | mime_type: application/javascript |
| 43 | secure: always |
| 44 | http_headers: |
| 45 | Access-Control-Allow-Origin: '*' |
| 46 | |
| 47 | - url: /static |
| 48 | static_dir: static |
| 49 | |
| 50 | - url: /_ah/mail/.+ |
| 51 | script: monorailapp.app |
| 52 | login: admin |
| 53 | |
| 54 | - url: /_ah/warmup |
| 55 | script: monorailapp.app |
| 56 | login: admin |
| 57 | |
| 58 | - url: /.* |
| 59 | script: monorailapp.app |
| 60 | secure: always |
| 61 | |
Adrià Vilanova Martínez | 515639b | 2021-07-06 16:43:59 +0200 | [diff] [blame] | 62 | # From api service: |
| 63 | - url: /prpc/.* |
| 64 | script: monorailapp.app |
| 65 | secure: always |
| 66 | |
| 67 | # From besearch service |
| 68 | - url: /_backend/.* |
| 69 | script: monorailapp.app |
| 70 | |
| 71 | # From latency-insensitive service |
| 72 | - url: /_task/.* |
| 73 | script: monorailapp.app |
| 74 | login: admin |
| 75 | |
| 76 | - url: /_cron/.* |
| 77 | script: monorailapp.app |
| 78 | login: admin |
| 79 | |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 80 | inbound_services: |
| 81 | - mail |
| 82 | - mail_bounce |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 83 | - warmup |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 84 | |
| 85 | libraries: |
| 86 | - name: endpoints |
Adrià Vilanova Martínez | 2d5457a | 2022-01-13 13:25:39 +0100 | [diff] [blame] | 87 | version: "1.0" |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 88 | - name: grpcio |
Adrià Vilanova Martínez | 2d5457a | 2022-01-13 13:25:39 +0100 | [diff] [blame] | 89 | version: "1.0.0" |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 90 | - name: MySQLdb |
| 91 | version: "latest" |
| 92 | - name: ssl # needed for google.auth.transport and GAE_USE_SOCKETS_HTTPLIB |
| 93 | version: "2.7.11" |
| 94 | |
| 95 | includes: |
| 96 | - gae_ts_mon |
| 97 | |
| 98 | env_variables: |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 99 | GAE_USE_SOCKETS_HTTPLIB : '' |
| 100 | |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 101 | skip_files: |
| 102 | - ^(.*/)?#.*#$ |
| 103 | - ^(.*/)?.*~$ |
| 104 | - ^(.*/)?.*\.py[co]$ |
| 105 | - ^(.*/)?.*/RCS/.*$ |
| 106 | - ^(.*/)?\..*$ |
| 107 | - node_modules/ |
| 108 | - venv/ |
Adrià Vilanova Martínez | 2d5457a | 2022-01-13 13:25:39 +0100 | [diff] [blame] | 109 | - third_party/tools/ |