Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame^] | 1 | # 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 | |
| 6 | define(`_VERSION', `syscmd(`echo $_VERSION')') |
| 7 | |
| 8 | service: latency-insensitive |
| 9 | runtime: python27 |
| 10 | api_version: 1 |
| 11 | threadsafe: no |
| 12 | |
| 13 | default_expiration: "3600d" |
| 14 | |
| 15 | ifdef(`PROD', ` |
| 16 | instance_class: F4 |
| 17 | automatic_scaling: |
| 18 | min_idle_instances: 5 |
| 19 | max_pending_latency: 0.2s |
| 20 | ') |
| 21 | |
| 22 | ifdef(`STAGING', ` |
| 23 | instance_class: F4 |
| 24 | automatic_scaling: |
| 25 | min_idle_instances: 5 |
| 26 | max_pending_latency: 0.2s |
| 27 | ') |
| 28 | |
| 29 | ifdef(`DEV', ` |
| 30 | instance_class: F4 |
| 31 | automatic_scaling: |
| 32 | min_idle_instances: 1 |
| 33 | ') |
| 34 | |
| 35 | handlers: |
| 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 | |
| 55 | inbound_services: |
| 56 | - mail |
| 57 | - mail_bounce |
| 58 | ifdef(`PROD', ` |
| 59 | - warmup |
| 60 | ') |
| 61 | ifdef(`STAGING', ` |
| 62 | - warmup |
| 63 | ') |
| 64 | |
| 65 | libraries: |
| 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 | |
| 75 | includes: |
| 76 | - gae_ts_mon |
| 77 | |
| 78 | env_variables: |
| 79 | VERSION_ID: '_VERSION' |
| 80 | GAE_USE_SOCKETS_HTTPLIB: '' |
| 81 | |
| 82 | vpc_access_connector: |
| 83 | ifdef(`DEV',` |
| 84 | name: "projects/monorail-dev/locations/us-central1/connectors/redis-connector" |
| 85 | ') |
| 86 | ifdef(`STAGING',` |
| 87 | name: "projects/monorail-staging/locations/us-central1/connectors/redis-connector" |
| 88 | ') |
| 89 | ifdef(`PROD', ` |
| 90 | name: "projects/monorail-prod/locations/us-central1/connectors/redis-connector" |
| 91 | ') |
| 92 | |
| 93 | skip_files: |
| 94 | - ^(.*/)?#.*#$ |
| 95 | - ^(.*/)?.*~$ |
| 96 | - ^(.*/)?.*\.py[co]$ |
| 97 | - ^(.*/)?.*/RCS/.*$ |
| 98 | - ^(.*/)?\..*$ |
| 99 | - node_modules/ |
| 100 | - venv/ |