2013-03-07 22:29:38 +04:00
|
|
|
runtime: python27
|
|
|
|
threadsafe: true
|
|
|
|
api_version: 1
|
2017-07-21 11:49:35 +03:00
|
|
|
instance_class: F2
|
2013-03-07 22:29:38 +04:00
|
|
|
|
2014-01-29 06:24:07 +04:00
|
|
|
# default_expiration: "30s"
|
2013-03-07 22:29:38 +04:00
|
|
|
|
2013-07-10 05:49:23 +04:00
|
|
|
builtins:
|
|
|
|
- remote_api: on
|
|
|
|
|
2013-04-12 21:19:21 +04:00
|
|
|
handlers:
|
|
|
|
|
|
|
|
# Static handlers ---------------------------------------------------------------
|
|
|
|
- url: /favicon\.ico
|
|
|
|
static_files: static/img/chromium-128.png
|
|
|
|
upload: static/img/chromium-128\.png
|
|
|
|
|
2014-08-05 20:38:41 +04:00
|
|
|
- url: /robots\.txt
|
|
|
|
static_files: static/robots.txt
|
|
|
|
upload: static/robots\.txt
|
|
|
|
|
2016-07-19 23:37:41 +03:00
|
|
|
- url: /service-worker\.js
|
|
|
|
static_files: static/dist/service-worker.js
|
|
|
|
upload: static/dist/service-worker\.js
|
2016-08-07 05:06:29 +03:00
|
|
|
application_readable: true
|
2016-07-19 23:37:41 +03:00
|
|
|
expiration: "0m"
|
|
|
|
secure: always
|
|
|
|
|
2017-07-05 22:35:37 +03:00
|
|
|
- url: /firebase-messaging-sw\.js
|
|
|
|
static_files: static/firebase-messaging-sw.js
|
2017-08-06 20:27:42 +03:00
|
|
|
upload: static/firebase-messaging-sw\.js
|
2017-07-05 22:35:37 +03:00
|
|
|
# application_readable: true
|
|
|
|
expiration: "0m"
|
|
|
|
secure: always
|
|
|
|
|
2013-04-12 21:19:21 +04:00
|
|
|
- url: /static
|
|
|
|
static_dir: static
|
2014-01-29 06:24:07 +04:00
|
|
|
#expiration: 30s
|
2016-08-07 05:12:39 +03:00
|
|
|
application_readable: true # So static assets can be read by inline_file django tag.
|
2013-08-15 02:39:11 +04:00
|
|
|
http_headers:
|
|
|
|
Access-Control-Allow-Origin: "*"
|
2013-04-12 21:19:21 +04:00
|
|
|
|
|
|
|
# Metrics data handlers --------------------------------------------------------
|
|
|
|
- url: /data/.*
|
|
|
|
script: metrics.app
|
|
|
|
|
|
|
|
# Admin ------------------------------------------------------------------------
|
2015-02-10 20:31:50 +03:00
|
|
|
- url: /cron/.*
|
2013-04-12 21:19:21 +04:00
|
|
|
script: admin.app
|
|
|
|
login: admin # Prevents raw access to this handler. Cron runs as admin.
|
|
|
|
|
2017-08-06 23:37:08 +03:00
|
|
|
- url: /tasks/.*
|
2017-08-07 05:24:18 +03:00
|
|
|
script: notifier.app
|
2017-08-06 23:37:08 +03:00
|
|
|
login: admin # Prevents raw access to this handler. Tasks runs as admin.
|
|
|
|
|
2017-06-20 21:35:27 +03:00
|
|
|
- url: /admin/gae/.*
|
|
|
|
script: google.appengine.ext.admin.application
|
|
|
|
login: admin
|
|
|
|
|
|
|
|
- url: /admin/blink.*
|
|
|
|
script: blink_handler.app
|
2017-08-20 04:29:11 +03:00
|
|
|
login: required # non-admin
|
|
|
|
secure: always
|
|
|
|
|
|
|
|
- url: /admin/subscribers.*
|
|
|
|
script: blink_handler.app
|
2017-07-11 22:16:20 +03:00
|
|
|
login: required # non-admin
|
2017-06-06 03:31:04 +03:00
|
|
|
secure: always
|
|
|
|
|
2013-04-12 21:19:21 +04:00
|
|
|
- url: /admin/features/.*
|
|
|
|
script: admin.app
|
2018-03-28 20:34:22 +03:00
|
|
|
login: required # non-admin
|
2014-10-01 23:21:45 +04:00
|
|
|
secure: always
|
2013-06-19 10:39:09 +04:00
|
|
|
|
|
|
|
- url: /admin/users/.*
|
|
|
|
script: users.app
|
2013-04-12 21:19:21 +04:00
|
|
|
login: admin
|
2014-10-01 23:21:45 +04:00
|
|
|
secure: always
|
2013-04-12 21:19:21 +04:00
|
|
|
|
2017-08-06 23:37:08 +03:00
|
|
|
- url: /admin/notifications/.*
|
|
|
|
script: notifier.app
|
|
|
|
login: admin
|
|
|
|
secure: always
|
|
|
|
|
2013-06-19 10:39:09 +04:00
|
|
|
- url: /admin/.*
|
|
|
|
script: google.appengine.ext.admin.application
|
|
|
|
login: admin
|
2014-10-01 23:21:45 +04:00
|
|
|
secure: always
|
2015-04-28 21:01:51 +03:00
|
|
|
|
2017-07-11 22:16:20 +03:00
|
|
|
# Main server handlers ---------------------------------------------------------
|
2014-11-13 18:58:40 +03:00
|
|
|
# features.xml needs to support HTTP as well as HTTPS, as some RSS backends don't support SNI certs.
|
|
|
|
# Same issue as what's described at https://github.com/Polymer/blog/issues/7
|
2015-10-03 03:40:55 +03:00
|
|
|
- url: /(features|samples).xml
|
2014-11-13 18:58:40 +03:00
|
|
|
script: server.app
|
|
|
|
secure: optional
|
|
|
|
|
2017-08-03 20:26:56 +03:00
|
|
|
- url: /features/push/.*
|
2017-07-11 22:16:20 +03:00
|
|
|
script: notifier.app
|
|
|
|
secure: always
|
|
|
|
|
|
|
|
- url: /features/schedule.*
|
|
|
|
script: schedule.app
|
|
|
|
secure: always
|
|
|
|
|
|
|
|
# Everything else
|
2013-04-12 21:19:21 +04:00
|
|
|
- url: /.*
|
|
|
|
script: server.app
|
2014-10-01 23:21:45 +04:00
|
|
|
secure: always
|
2013-04-12 21:19:21 +04:00
|
|
|
|
2017-07-03 08:14:35 +03:00
|
|
|
includes:
|
|
|
|
- skip_files.yaml
|
2017-10-17 19:57:53 +03:00
|
|
|
- env_vars.yaml
|