forked from html5rocks/www.html5rocks.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.yaml
185 lines (143 loc) · 4.9 KB
/
app.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
application: html5rocks-hrd
version: master
runtime: python
api_version: 1
default_expiration: "30d"
inbound_services:
- warmup
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