forked from oppia/oppia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app_dev.yaml
467 lines (457 loc) · 17.7 KB
/
app_dev.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
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
runtime: python27
api_version: 1
threadsafe: false
instance_class: F2
# The "version" line is added here so that MR jobs can run locally (see issue
# #6534 on oppia/oppia).
version: default
builtins:
- deferred: on
- remote_api: on
inbound_services:
- warmup
- mail
default_expiration: "10m"
handlers:
# PRODUCTION STATIC
- url: /favicon.ico
static_files: assets/favicon.ico
upload: assets/favicon.ico
secure: always
- url: /robots.txt
static_files: assets/robots.txt
upload: assets/robots.txt
secure: always
- url: /sitemap.xml
static_files: assets/sitemap.xml
upload: assets/sitemap.xml
secure: always
- url: /mapreduce/pipeline/images
static_dir: third_party/gae-mapreduce-1.9.22.0/mapreduce/lib/pipeline/ui/images
secure: always
- url: /build
static_dir: build
secure: always
expiration: "90d"
- url: /third_party/static
static_dir: third_party/static
secure: always
expiration: "90d"
- url: /security.txt
static_files: assets/security.txt
upload: assets/security.txt
secure: always
# DEVELOPMENT STATIC
- url: /webpack_bundles
static_dir: webpack_bundles
secure: always
application_readable: true
expiration: "0"
- url: /assets
static_dir: assets
secure: always
application_readable: true
expiration: "0"
# Serve js scripts and css files under core/templates.
# This regex allows us to recursively serve js scripts.
# "\1" inserts text captured by the capture group in the URL pattern.
- url: /templates/(.*\.(css))$
static_files: core/templates/\1
upload: core/templates/(.*\.(css))$
secure: always
expiration: "0"
- url: /templates/(.*\.(js))$
static_files: local_compiled_js/core/templates/\1
upload: local_compiled_js/core/templates/(.*\.(js))$
secure: always
expiration: "0"
- url: /templates/(.*\.(html))$
static_files: core/templates/\1
upload: core/templates/(.*\.(html))$
secure: always
expiration: "0"
application_readable: true
- url: /third_party/generated
static_dir: third_party/generated
secure: always
expiration: "0"
- url: /extensions/interactions/(.*)/static/(.*\.(css|png))
static_files: extensions/interactions/\1/static/\2
upload: extensions/interactions/(.*)/static/(.*\.(css|png))
secure: always
expiration: "0"
- url: /extensions/interactions/(.*)/static/(.js)
static_files: extensions/interactions/\1/static/\2
upload: local_compiled_js/extensions/interactions/(.*)/static/(.js)
secure: always
expiration: "0"
- url: /extensions/(interactions|rich_text_components)/(.*)/directives/(.*\.(html))
static_files: extensions/\1/\2/directives/\3
upload: extensions/(interactions|rich_text_components)/(.*)/directives/(.*\.(html))
secure: always
expiration: "0"
# Serve js scripts for gadgets, interactions, rich_text_components, custom ckeditor plugins
# and objects under extensions in dev mode. This regex allows us to recursively serve js
# scripts under the three specified directories. "\1" and "\2" insert capture
# groups from the url pattern.
- url: /extensions/(interactions|rich_text_components|objects|classifiers|ckeditor_plugins)/(.*\.(png))$
static_files: extensions/\1/\2
upload: extensions/(interactions|rich_text_components|objects|classifiers|ckeditor_plugins)/(.*\.(png))$
secure: always
expiration: "0"
- url: /extensions/ckeditor_plugins/(.*\.(js))$
static_files: extensions/ckeditor_plugins/\1
upload: extensions/ckeditor_plugins/(.*\.(js))$
secure: always
expiration: "0"
- url: /extensions/visualizations/(.*\.html)
static_files: extensions/visualizations/\1
upload: extensions/visualizations/(.*\.html)
secure: always
expiration: "0"
- url: /extensions/objects/templates/(.*\.html)
static_files: extensions/objects/templates/\1
upload: extensions/objects/templates/(.*\.html)
secure: always
expiration: "0"
# DYNAMIC
- url: /mapreduce(/.*)?
script: mapreduce.main.APP
login: admin
secure: always
- url: /mapreduce/worker(/.*)?
script: mapreduce.main.APP
login: admin
secure: always
- url: /cron/.*
login: admin
script: main_cron.app
secure: always
- url: /task/.*
login: admin
script: main_taskqueue.app
secure: always
- url: /_ah/mail/.*
login: admin
script: main_mail.app
secure: always
# STATIC PAGES.
- url: /about
static_files: webpack_bundles/about-page.mainpage.html
upload: webpack_bundles/about-page.mainpage.html
http_headers:
Pragma: no-cache
Strict-Transport-Security: "max-age=31536000; includeSubDomains"
X-Content-Type-Options: "nosniff"
X-Frame-Options: "DENY"
X-Xss-Protection: "1; mode=block"
secure: always
expiration: "0"
- url: /contact
static_files: webpack_bundles/contact-page.mainpage.html
upload: webpack_bundles/contact-page.mainpage.html
http_headers:
Pragma: no-cache
Strict-Transport-Security: "max-age=31536000; includeSubDomains"
X-Content-Type-Options: "nosniff"
X-Frame-Options: "DENY"
X-Xss-Protection: "1; mode=block"
secure: always
expiration: "0"
- url: /donate
static_files: webpack_bundles/donate-page.mainpage.html
upload: webpack_bundles/donate-page.mainpage.html
http_headers:
Pragma: no-cache
Strict-Transport-Security: "max-age=31536000; includeSubDomains"
X-Content-Type-Options: "nosniff"
X-Frame-Options: "DENY"
X-Xss-Protection: "1; mode=block"
secure: always
expiration: "0"
- url: /get-started
static_files: webpack_bundles/get-started-page.mainpage.html
upload: webpack_bundles/get-started-page.mainpage.html
http_headers:
Pragma: no-cache
Strict-Transport-Security: "max-age=31536000; includeSubDomains"
X-Content-Type-Options: "nosniff"
X-Frame-Options: "DENY"
X-Xss-Protection: "1; mode=block"
secure: always
expiration: "0"
- url: /login
static_files: webpack_bundles/login-page.mainpage.html
upload: webpack_bundles/login-page.mainpage.html
http_headers:
Pragma: no-cache
Strict-Transport-Security: "max-age=31536000; includeSubDomains"
X-Content-Type-Options: "nosniff"
X-Frame-Options: "DENY"
X-Xss-Protection: "1; mode=block"
secure: always
expiration: "0"
- url: /logout
static_files: webpack_bundles/logout-page.mainpage.html
upload: webpack_bundles/logout-page.mainpage.html
http_headers:
Pragma: no-cache
Strict-Transport-Security: "max-age=31536000; includeSubDomains"
X-Content-Type-Options: "nosniff"
X-Frame-Options: "DENY"
X-Xss-Protection: "1; mode=block"
secure: always
expiration: "0"
- url: /creator-guidelines
static_files: webpack_bundles/playbook.mainpage.html
upload: webpack_bundles/playbook.mainpage.html
http_headers:
Pragma: no-cache
Strict-Transport-Security: "max-age=31536000; includeSubDomains"
X-Content-Type-Options: "nosniff"
X-Frame-Options: "DENY"
X-Xss-Protection: "1; mode=block"
secure: always
expiration: "0"
- url: /privacy-policy
static_files: webpack_bundles/privacy-page.mainpage.html
upload: webpack_bundles/privacy-page.mainpage.html
http_headers:
Pragma: no-cache
Strict-Transport-Security: "max-age=31536000; includeSubDomains"
X-Content-Type-Options: "nosniff"
X-Frame-Options: "DENY"
X-Xss-Protection: "1; mode=block"
secure: always
expiration: "0"
- url: /teach
static_files: webpack_bundles/teach-page.mainpage.html
upload: webpack_bundles/teach-page.mainpage.html
http_headers:
Pragma: no-cache
Strict-Transport-Security: "max-age=31536000; includeSubDomains"
X-Content-Type-Options: "nosniff"
X-Frame-Options: "DENY"
X-Xss-Protection: "1; mode=block"
secure: always
expiration: "0"
- url: /terms
static_files: webpack_bundles/terms-page.mainpage.html
upload: webpack_bundles/terms-page.mainpage.html
http_headers:
Pragma: no-cache
Strict-Transport-Security: "max-age=31536000; includeSubDomains"
X-Content-Type-Options: "nosniff"
X-Frame-Options: "DENY"
X-Xss-Protection: "1; mode=block"
secure: always
expiration: "0"
- url: /thanks
static_files: webpack_bundles/thanks-page.mainpage.html
upload: webpack_bundles/thanks-page.mainpage.html
http_headers:
Pragma: no-cache
Strict-Transport-Security: "max-age=31536000; includeSubDomains"
X-Content-Type-Options: "nosniff"
X-Frame-Options: "DENY"
X-Xss-Protection: "1; mode=block"
secure: always
expiration: "0"
- url: /.*
script: main.app
secure: always
libraries:
- name: jinja2
version: "2.6"
- name: PIL
version: "1.1.7"
# This is needed for sending requests to a mailgun HTTPS URL.
- name: ssl
version: "2.7.11"
- name: grpcio
version: 1.0.0
- name: setuptools
version: 36.6.0
# This is an access connector that connects to the Google Cloud Redis instance
# used for memory caching. Please replace PROJECT_ID with the correct project id
# for oppia on the production server.
vpc_access_connector:
name: projects/PROJECT_ID/locations/us-central1/connectors/oppia-redis-connector-1
env_variables:
PYTHONHTTPSVERIFY: 1
# GAE_USE_SOCKETS_HTTPLIB is needed for the redis connector in the Python 2
# runtime. More information can be found here:
# https://cloud.google.com/appengine/docs/standard/python/connecting-vpc#configuring
# (The second note under 'Configuring your app to use a connector') which
# redirects to these instructions to disable URL fetch:
# https://cloud.google.com/appengine/docs/standard/python/sockets#making_httplib_use_sockets
GAE_USE_SOCKETS_HTTPLIB : "anyvalue"
# FIREBASE_AUTH_EMULATOR_HOST is needed to allow the Firebase SDK to connect
# with the Firebase emulator. THIS MUST NOT BE DEPLOYED TO PRODUCTION. We
# protect against this in the build script.
FIREBASE_AUTH_EMULATOR_HOST: "localhost:9099"
skip_files:
# .pyc and .pyo files
- ^(.*/)?.*\.py[co]$
# Unix hidden files whose names begin with a dot
- ^(.*/)?\..*$
# Karma test files
- ^(.*/)Spec.js$
# Typescript files
- ^core/(.*/)?.*\.ts$
# Typescript output log file
- ^(.*/)tsc_output_log.txt$
# Python test files
- ^(.*/)?.*_test\.py$
# Other folders to ignore
- core/tests/
- node_modules/
- scripts/
# Some third_party static scripts are directly imported, namely: jquery,
# jqueryui, angularjs, jqueryui-touch-punch, MathJax, code-mirror,
# ui-codemirror, d3js, midi-js, ui-map, guppy, skulpt, math-expressions.
# We exclude some of the scripts that are not directly imported in order to
# reduce deployed file count.
# TODO(sll): Find a more structured way of doing this.
#
# Please do not remove line below this, as it is used for testing purpose.
# Third party files:
- third_party/static/angular-audio-1.7.4/
- third_party/static/angular-toastr-1.7.0/
- third_party/static/bootstrap-4.3.1/
- third_party/static/bower-angular-translate-2.18.1/
- third_party/static/bower-angular-translate-interpolation-messageformat-2.18.1/
- third_party/static/bower-angular-translate-loader-partial-2.18.1/
- third_party/static/bower-angular-translate-loader-static-files-2.18.1/
- third_party/static/bower-angular-translate-storage-cookie-2.18.1/
- third_party/static/bower-material-1.1.19/
- third_party/python_libs/google/appengine/
- third_party/python_libs/google/net/
- third_party/python_libs/google/pyglib/
- third_party/python_libs/grpc/
# CKEditor-4.12.1 plugins in the download from the CKEditor website include
# only a11yhelp, about, clipboard, colordialog, copyformatting, dialog, div,
# find, flash, forms, iframe, image, link, liststyle, magicline, pagebreak,
# pastefromword, preview, scayt, showblocks, smiley, specialchar, table,
# tableselection, tabletools, templates, widget and wsc. Our code is also using
# the sharedspace plugin. So, for now, we exclude all others, as well as flash,
# a11yhelp, about, colordialog, iframe, and anything related to tables, which
# we definitely don't use.
- third_party/static/ckeditor-4.12.1/plugins/a11yhelp/
- third_party/static/ckeditor-4.12.1/plugins/about/
- third_party/static/ckeditor-4.12.1/plugins/adobeair/
- third_party/static/ckeditor-4.12.1/plugins/ajax/
- third_party/static/ckeditor-4.12.1/plugins/autocomplete/
- third_party/static/ckeditor-4.12.1/plugins/autoembed/
- third_party/static/ckeditor-4.12.1/plugins/autogrow/
- third_party/static/ckeditor-4.12.1/plugins/autolink/
- third_party/static/ckeditor-4.12.1/plugins/balloonpanel/
- third_party/static/ckeditor-4.12.1/plugins/balloontoolbar/
- third_party/static/ckeditor-4.12.1/plugins/bbcode/
- third_party/static/ckeditor-4.12.1/plugins/bidi/
- third_party/static/ckeditor-4.12.1/plugins/cloudservices/
- third_party/static/ckeditor-4.12.1/plugins/codesnippet/
- third_party/static/ckeditor-4.12.1/plugins/codesnippetgeshi/
- third_party/static/ckeditor-4.12.1/plugins/colorbutton/
- third_party/static/ckeditor-4.12.1/plugins/colordialog/
- third_party/static/ckeditor-4.12.1/plugins/devtools/
- third_party/static/ckeditor-4.12.1/plugins/dialogadvtab/
- third_party/static/ckeditor-4.12.1/plugins/divarea/
- third_party/static/ckeditor-4.12.1/plugins/docprops/
- third_party/static/ckeditor-4.12.1/plugins/easyimage/
- third_party/static/ckeditor-4.12.1/plugins/embed/
- third_party/static/ckeditor-4.12.1/plugins/embedbase/
- third_party/static/ckeditor-4.12.1/plugins/embedsemantic/
- third_party/static/ckeditor-4.12.1/plugins/emoji/
- third_party/static/ckeditor-4.12.1/plugins/flash/
- third_party/static/ckeditor-4.12.1/plugins/font/
- third_party/static/ckeditor-4.12.1/plugins/iframe/
- third_party/static/ckeditor-4.12.1/plugins/iframedialog/
- third_party/static/ckeditor-4.12.1/plugins/image2/
- third_party/static/ckeditor-4.12.1/plugins/imagebase/
- third_party/static/ckeditor-4.12.1/plugins/indentblock/
- third_party/static/ckeditor-4.12.1/plugins/justify/
- third_party/static/ckeditor-4.12.1/plugins/language/
- third_party/static/ckeditor-4.12.1/plugins/mathjax/
- third_party/static/ckeditor-4.12.1/plugins/mentions/
- third_party/static/ckeditor-4.12.1/plugins/newpage/
- third_party/static/ckeditor-4.12.1/plugins/panelbutton/
- third_party/static/ckeditor-4.12.1/plugins/placeholder/
- third_party/static/ckeditor-4.12.1/plugins/print/
- third_party/static/ckeditor-4.12.1/plugins/save/
- third_party/static/ckeditor-4.12.1/plugins/selectall/
- third_party/static/ckeditor-4.12.1/plugins/sourcedialog/
- third_party/static/ckeditor-4.12.1/plugins/stylesheetparser/
- third_party/static/ckeditor-4.12.1/plugins/table/
- third_party/static/ckeditor-4.12.1/plugins/tableresize/
- third_party/static/ckeditor-4.12.1/plugins/tabletools/
- third_party/static/ckeditor-4.12.1/plugins/textmatch/
- third_party/static/ckeditor-4.12.1/plugins/textwatcher/
- third_party/static/ckeditor-4.12.1/plugins/uicolor/
- third_party/static/ckeditor-4.12.1/plugins/uploadfile/
- third_party/static/ckeditor-4.12.1/plugins/xml/
- third_party/static/ckeditor-4.12.1/samples/
- third_party/static/ckeditor-4.12.1/skins/kama/
- third_party/static/ckeditor-4.12.1/skins/moono/
- third_party/static/ckeditor-bootstrapck-1.0.0/core/
- third_party/static/ckeditor-bootstrapck-1.0.0/lang/
- third_party/static/ckeditor-bootstrapck-1.0.0/plugins/
- third_party/static/ckeditor-bootstrapck-1.0.0/skins/bootstrapck-dev/
- third_party/static/ckeditor-bootstrapck-1.0.0/skins/moono/
- third_party/static/ckeditor-bootstrapck-1.0.0/skins/ckbuilder.jar/
- third_party/static/ckeditor-bootstrapck-1.0.0/skins/bootstrapck/sample/
- third_party/static/ckeditor-bootstrapck-1.0.0/skins/bootstrapck/scss/
- third_party/static/fontawesome-free-5.9.0-web/
- third_party/static/guppy-7509f3/site/
- third_party/static/guppy-7509f3/test/
- third_party/static/MathJax-2.7.5/docs/
- third_party/static/MathJax-2.7.5/fonts/HTML-CSS/Gyre-Pagella/
- third_party/static/MathJax-2.7.5/fonts/HTML-CSS/Gyre-Termes/
- third_party/static/MathJax-2.7.5/fonts/HTML-CSS/Latin-Modern/
- third_party/static/MathJax-2.7.5/fonts/HTML-CSS/Neo-Euler/
- third_party/static/MathJax-2.7.5/fonts/HTML-CSS/TeX/png/
- third_party/static/MathJax-2.7.5/localization/ast/
- third_party/static/MathJax-2.7.5/localization/bcc/
- third_party/static/MathJax-2.7.5/localization/bg/
- third_party/static/MathJax-2.7.5/localization/br/
- third_party/static/MathJax-2.7.5/localization/ca/
- third_party/static/MathJax-2.7.5/localization/cdo/
- third_party/static/MathJax-2.7.5/localization/cs/
- third_party/static/MathJax-2.7.5/localization/cy/
- third_party/static/MathJax-2.7.5/localization/da/
- third_party/static/MathJax-2.7.5/localization/de/
- third_party/static/MathJax-2.7.5/localization/eo/
- third_party/static/MathJax-2.7.5/localization/es/
- third_party/static/MathJax-2.7.5/localization/fa/
- third_party/static/MathJax-2.7.5/localization/fi/
- third_party/static/MathJax-2.7.5/localization/fr/
- third_party/static/MathJax-2.7.5/localization/gl/
- third_party/static/MathJax-2.7.5/localization/he/
- third_party/static/MathJax-2.7.5/localization/ia/
- third_party/static/MathJax-2.7.5/localization/it/
- third_party/static/MathJax-2.7.5/localization/ja/
- third_party/static/MathJax-2.7.5/localization/kn/
- third_party/static/MathJax-2.7.5/localization/ko/
- third_party/static/MathJax-2.7.5/localization/lb/
- third_party/static/MathJax-2.7.5/localization/lki/
- third_party/static/MathJax-2.7.5/localization/lt/
- third_party/static/MathJax-2.7.5/localization/mk/
- third_party/static/MathJax-2.7.5/localization/nl/
- third_party/static/MathJax-2.7.5/localization/oc/
- third_party/static/MathJax-2.7.5/localization/pl/
- third_party/static/MathJax-2.7.5/localization/pt/
- third_party/static/MathJax-2.7.5/localization/pt-br/
- third_party/static/MathJax-2.7.5/localization/qqq/
- third_party/static/MathJax-2.7.5/localization/ru/
- third_party/static/MathJax-2.7.5/localization/scn/
- third_party/static/MathJax-2.7.5/localization/sco/
- third_party/static/MathJax-2.7.5/localization/sl/
- third_party/static/MathJax-2.7.5/localization/sv/
- third_party/static/MathJax-2.7.5/localization/tr/
- third_party/static/MathJax-2.7.5/localization/uk/
- third_party/static/MathJax-2.7.5/localization/vi/
- third_party/static/MathJax-2.7.5/localization/zh-hans/
- third_party/static/MathJax-2.7.5/test/
- third_party/static/MathJax-2.7.5/unpacked/
- third_party/static/messageformat-2.0.5/
- third_party/static/popperJs-1.15.0/