This repository has been archived by the owner on Jan 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 768
/
app.yaml
260 lines (214 loc) · 6.46 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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
runtime: python27
threadsafe: yes
api_version: 1
env_variables:
DJANGO_SETTINGS_MODULE: 'settings'
libraries:
- name: webapp2
version: "latest"
- name: django
version: "1.4" #"latest"
inbound_services:
- warmup
builtins:
- remote_api: on
default_expiration: "30d"
handlers:
- url: /google75906d613a2a09ba.html
static_files: static/google75906d613a2a09ba.html
upload: static/google75906d613a2a09ba.html
secure: always
# 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"
secure: always
- url: /webappfieldguide/css
static_dir: webappfieldguide/static/css
secure: always
- url: /webappfieldguide/img
static_dir: webappfieldguide/static/img
secure: always
- url: /webappfieldguide/js
static_dir: webappfieldguide/static/js
secure: always
- url: /webappfieldguide/index.html
static_files: webappfieldguide/index/index.html
upload: webappfieldguide/index/index.html
secure: always
- url: /webappfieldguide/(.*\.(html|txt|xml|png|ico))
static_files: webappfieldguide/static/\1
upload: webappfieldguide/static/(.*\.(html|txt|xml|png|ico))
secure: always
- url: /webappfieldguide
static_files: webappfieldguide/index/index.html
upload: webappfieldguide/index/index.html
secure: always
- url: /webappfieldguide/(.*)
static_files: webappfieldguide/index/index.html
upload: webappfieldguide/index/index.html
secure: always
# 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)
secure: always
redirect_http_response_code: 301
- url: /(\w{2,3})/(tutorials/[^/]+/[^/]+)/(.+\.webm)
mime_type: video/webm
static_files: content/\2/static/\3
upload: content/tutorials/(.*\.webm)
secure: always
redirect_http_response_code: 301
- url: /(\w{2,3})/(tutorials/casestudies)/(.+\.ogv)
mime_type: video/ogg
static_files: content/\2/static/\3
upload: content/tutorials/(.*\.ogv)
secure: always
redirect_http_response_code: 301
- url: /(\w{2,3})/(tutorials/[^/]+/[^/]+)/(.+\.ogv)
mime_type: video/ogg
static_files: content/\2/static/\3
upload: content/tutorials/(.*\.ogv)
secure: always
redirect_http_response_code: 301
- url: /(\w{2,3})/(tutorials/casestudies)/(.+\.mp4)
mime_type: audio/mp4
static_files: content/\2/static/\3
upload: content/tutorials/(.*\.mp4)
secure: always
redirect_http_response_code: 301
- url: /(\w{2,3})/(tutorials/[^/]+/[^/]+)/(.+\.mp4)
mime_type: video/mp4
static_files: content/\2/static/\3
upload: content/tutorials/(.*\.mp4)
secure: always
redirect_http_response_code: 301
#
# 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))
secure: always
redirect_http_response_code: 301
- url: /(\w{2,3})/(tutorials/[^/]+/[^/]+)/(.+\.(ogg|oga))
mime_type: audio/ogg
static_files: content/\2/static/\3
upload: content/tutorials/(.*\.(ogg|oga))
secure: always
redirect_http_response_code: 301
- url: /(\w{2,3})/(tutorials/casestudies)/(.+\.mp3)
mime_type: audio/mp3
static_files: content/\2/static/\3
upload: content/tutorials/(.*\.mp3)
secure: always
redirect_http_response_code: 301
- url: /(\w{2,3})/(tutorials/casestudies)/(.+\.wav)
mime_type: audio/wav
static_files: content/\2/static/\3
upload: content/tutorials/(.*\.wav)
secure: always
redirect_http_response_code: 301
- url: /(\w{2,3})/(tutorials/[^/]+/[^/]+)/(.+\.wav)
mime_type: audio/wav
static_files: content/\2/static/\3
upload: content/tutorials/(.*\.wav)
secure: always
redirect_http_response_code: 301
#
# 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))
secure: always
redirect_http_response_code: 301
- 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))
secure: always
redirect_http_response_code: 301
- url: /(\w{2,3})/(tutorials/[^/]+/[^/]+)/(.+\.crx)
static_files: content/tutorials/\1
mime_type: application/x-chrome-extension
upload: content/tutorials/(.*\.crx)
secure: always
- url: /(.+\.(appcache|manifest))
expiration: "0s"
mime_type: text/cache-manifest
static_files: \1
upload: (.*\.(appcache|manifest))
secure: always
redirect_http_response_code: 301
#
# Everything else
#
- url: /(\w{2,3})/(tutorials/[^/]+/[^/]+)/(.+\.vtt)
mime_type: text/vtt
static_files: content/\2/static/\3
upload: content/tutorials/(.*\.vtt)
secure: always
redirect_http_response_code: 301
- url: /(\w{2,3})/(tutorials/casestudies)/(.+\.(gif|swf|mp3|css|js|png|jpeg|jpg|svg|svgz|ogm|fla|zip|pdf))
static_files: content/\2/static/\3
upload: content/tutorials/casestudies/(.*\.(gif|swf|mp3|css|js|png|jpeg|jpg|svg|svgz|ogm|fla|zip|pdf))
secure: always
redirect_http_response_code: 301
- url: /(\w{2,3})/(tutorials/[^/]+/[^/]+)/(.+\.(gif|swf|mp3|css|js|png|jpeg|jpg|svg|svgz|ogm|fla|zip|pdf|json))
static_files: content/\2/static/\3
upload: content/tutorials/[^/]+/[^/]+/(.+\.(gif|swf|mp3|css|js|png|jpeg|jpg|svg|svgz|ogm|fla|zip|pdf|json))
secure: always
redirect_http_response_code: 301
# Anything under /static will automatically be considered static.
- url: /static
static_dir: static
secure: always
redirect_http_response_code: 301
http_headers:
Access-Control-Allow-Origin: '*'
- url: /favicon.ico
static_files: static/favicon.ico
upload: static/favicon.ico
secure: always
redirect_http_response_code: 301
- url: /robots.txt
static_files: static/robots.txt
upload: static/robots.txt
secure: always
- url: /database/.*
script: main.app
login: admin
secure: always
- url: /admin/.*
script: google.appengine.ext.admin.application
login: admin
secure: always
- url: /echoserver
script: echo.app
- url: .*
script: main.app
secure: always
redirect_http_response_code: 301
skip_files:
- ^(.*/)?app\.yaml
- ^(.*/)?app\.yml
- ^(.*/)?index\.yaml
- ^(.*/)?index\.yml
- ^(.*/)?.*~
- ^(.*/)?.*\.py[co]
- ^(.*/)?.*/RCS/.*
- ^(.*/)?\..*
- ^(.*/)?.*\.scss$
- ^(.*/)?.*\.psd$