Find file
Fetching contributors…
Cannot retrieve contributors at this time
183 lines (141 sloc) 4.88 KB
application: html5rocks-hrd
version: master
runtime: python
api_version: 1
default_expiration: "30d"
handlers:
- url: /google75906d613a2a09ba.html
static_files: static/google75906d613a2a09ba.html
upload: static/google75906d613a2a09ba.html
# Web App Field Guide
- url: /webappfieldguide/(.*\.(appcache|manifest))
static_files: webappfieldguide/static/\1
mime_type: text/cache-manifest
upload: webappfieldguide/static/(.*\.(appcache|manifest))
expiration: "0s"
- url: /webappfieldguide/css
static_dir: webappfieldguide/static/css
- url: /webappfieldguide/img
static_dir: webappfieldguide/static/img
- url: /webappfieldguide/js
static_dir: webappfieldguide/static/js
- url: /webappfieldguide/index.html
static_files: webappfieldguide/index/index.html
upload: webappfieldguide/index/index.html
- url: /webappfieldguide/(.*\.(html|txt|xml|png|ico))
static_files: webappfieldguide/static/\1
upload: webappfieldguide/static/(.*\.(html|txt|xml|png|ico))
- url: /webappfieldguide
static_files: webappfieldguide/index/index.html
upload: webappfieldguide/index/index.html
- url: /webappfieldguide/(.*)
static_files: webappfieldguide/index/index.html
upload: webappfieldguide/index/index.html
# Server appropriate mimetype for certain static content.
#
# Video Formats
#
- url: /(\w{2,3})/(tutorials/casestudies)/(.+\.webm)
mime_type: audio/webm
static_files: content/\2/static/\3
upload: content/tutorials/(.*\.webm)
- url: /(\w{2,3})/(tutorials/[^/]+/[^/]+)/(.+\.webm)
mime_type: video/webm
static_files: content/\2/static/\3
upload: content/tutorials/(.*\.webm)
- url: /(\w{2,3})/(tutorials/casestudies)/(.+\.ogv)
mime_type: video/ogg
static_files: content/\2/static/\3
upload: content/tutorials/(.*\.ogv)
- url: /(\w{2,3})/(tutorials/[^/]+/[^/]+)/(.+\.ogv)
mime_type: video/ogg
static_files: content/\2/static/\3
upload: content/tutorials/(.*\.ogv)
- url: /(\w{2,3})/(tutorials/casestudies)/(.+\.mp4)
mime_type: audio/mp4
static_files: content/\2/static/\3
upload: content/tutorials/(.*\.mp4)
- url: /(\w{2,3})/(tutorials/[^/]+/[^/]+)/(.+\.mp4)
mime_type: video/mp4
static_files: content/\2/static/\3
upload: content/tutorials/(.*\.mp4)
#
# Audio Formats
#
- url: /(\w{2,3})/(tutorials/casestudies)/(.+\.(ogg|oga))
mime_type: audio/ogg
static_files: content/\2/static/\3
upload: content/tutorials/(.*\.(ogg|oga))
- url: /(\w{2,3})/(tutorials/[^/]+/[^/]+)/(.+\.(ogg|oga))
mime_type: audio/ogg
static_files: content/\2/static/\3
upload: content/tutorials/(.*\.(ogg|oga))
- url: /(\w{2,3})/(tutorials/casestudies)/(.+\.mp3)
mime_type: audio/mp3
static_files: content/\2/static/\3
upload: content/tutorials/(.*\.mp3)
- url: /(\w{2,3})/(tutorials/casestudies)/(.+\.wav)
mime_type: audio/wav
static_files: content/\2/static/\3
upload: content/tutorials/(.*\.wav)
- url: /(\w{2,3})/(tutorials/[^/]+/[^/]+)/(.+\.wav)
mime_type: audio/wav
static_files: content/\2/static/\3
upload: content/tutorials/(.*\.wav)
#
# Cache Manifests
#
- url: /(\w{2,3})/(tutorials/casestudies)/(.+\.(appcache|manifest))
expiration: "0s"
mime_type: text/cache-manifest
static_files: content/\2/static/\3
upload: content/tutorials/(.*\.(appcache|manifest))
- url: /(\w{2,3})/(tutorials/[^/]+/[^/]+)/(.+\.(appcache|manifest))
expiration: "0s"
mime_type: text/cache-manifest
static_files: content/\2/static/\3
upload: content/tutorials/(.*\.(appcache|manifest))
- url: /(\w{2,3})/(tutorials/[^/]+/[^/]+)/(.+\.crx)
static_files: content/tutorials/\1
mime_type: application/x-chrome-extension
upload: content/tutorials/(.*\.crx)
- url: /(.+\.(appcache|manifest))
expiration: "0s"
mime_type: text/cache-manifest
static_files: \1
upload: (.*\.(appcache|manifest))
#
# Everything else
#
- url: /(\w{2,3})/(tutorials/[^/]+/[^/]+)/(.+\.vtt)
mime_type: text/vtt
static_files: content/\2/static/\3
upload: content/tutorials/(.*\.vtt)
- url: /(\w{2,3})/(tutorials/casestudies)/(.+\.(gif|swf|mp3|css|js|png|jpeg|jpg|svg|ogm|fla|zip|pdf))
static_files: content/\2/static/\3
upload: content/tutorials/casestudies/(.*\.(gif|swf|mp3|css|js|png|jpeg|jpg|svg|ogm|fla|zip|pdf))
- url: /(\w{2,3})/(tutorials/[^/]+/[^/]+)/(.+\.(html|gif|swf|mp3|css|js|png|jpeg|jpg|svg|ogm|fla|zip|pdf))
static_files: content/\2/static/\3
upload: content/tutorials/(?!casestudies)(.*?/(?!index)[^/]*\.(html|gif|swf|mp3|css|js|png|jpeg|jpg|svg|ogm|fla|zip|pdf))
# Anything under /static will automatically be considered static.
- url: /static
static_dir: static
- url: /favicon.ico
static_files: static/favicon.ico
upload: static/favicon.ico
- url: /robots.txt
static_files: static/robots.txt
upload: static/robots.txt
- url: /database/live
script: main.py
login: required
- url: /database/.*
script: main.py
login: admin
- url: /admin/.*
script: $PYTHON_LIB/google/appengine/ext/admin
login: admin
- url: /echoserver
script: echo.py
- url: .*
script: main.py