Merge branch 'main' into avm99963-monorail

Merged commit 9b72c743236c5333af241ea6eaf89dd7de15777c.

Also, removed files module-*.yaml, since before we excluded them in the
Makefile, but now they are included by default, and we don't want them.

GitOrigin-RevId: de032b6e562c3c0cb63464bf536f7a020f82f663
diff --git a/app.yaml b/app.yaml
new file mode 100644
index 0000000..9cc0be0
--- /dev/null
+++ b/app.yaml
@@ -0,0 +1,109 @@
+# Copyright 2019 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://developers.google.com/open-source/licenses/bsd
+
+runtime: python27
+api_version: 1
+threadsafe: yes
+
+default_expiration: "10d"
+
+instance_class: F1
+automatic_scaling:
+  min_pending_latency: 15000ms
+  max_pending_latency: 15000ms
+  min_instances: 1
+  max_instances: 1
+  max_concurrent_requests: 80
+
+handlers:
+- url: /_ah/api/.*
+  script: monorailapp.endpoints
+
+- url: /robots.txt
+  static_files: static/robots.txt
+  upload: static/robots.txt
+  expiration: "10m"
+
+- url: /database-maintenance
+  static_files: static/database-maintenance.html
+  upload: static/database-maintenance.html
+
+- url: /static/dist
+  static_dir: static/dist
+  mime_type: application/javascript
+  secure: always
+  http_headers:
+    Access-Control-Allow-Origin: '*'
+
+- url: /static/js
+  static_dir: static/js
+  mime_type: application/javascript
+  secure: always
+  http_headers:
+    Access-Control-Allow-Origin: '*'
+
+- url: /static
+  static_dir: static
+
+- url: /_ah/mail/.+
+  script: monorailapp.app
+  login: admin
+
+- url: /_ah/warmup
+  script: monorailapp.app
+  login: admin
+
+- url: /.*
+  script: monorailapp.app
+  secure: always
+
+# From api service:
+- url: /prpc/.*
+  script: monorailapp.app
+  secure: always
+
+# From besearch service
+- url: /_backend/.*
+  script: monorailapp.app
+
+# From latency-insensitive service
+- url: /_task/.*
+  script: monorailapp.app
+  login: admin
+
+- url: /_cron/.*
+  script: monorailapp.app
+  login: admin
+
+inbound_services:
+- mail
+- mail_bounce
+- warmup
+
+libraries:
+- name: endpoints
+  version: "1.0"
+- name: grpcio
+  version: "1.0.0"
+- name: MySQLdb
+  version: "latest"
+- name: ssl # needed for google.auth.transport and GAE_USE_SOCKETS_HTTPLIB
+  version: "2.7.11"
+
+includes:
+- gae_ts_mon
+
+env_variables:
+  GAE_USE_SOCKETS_HTTPLIB : ''
+
+skip_files:
+- ^(.*/)?#.*#$
+- ^(.*/)?.*~$
+- ^(.*/)?.*\.py[co]$
+- ^(.*/)?.*/RCS/.*$
+- ^(.*/)?\..*$
+- node_modules/
+- venv/
+- third_party/tools/