forked from oppia/oppia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.yaml
173 lines (166 loc) · 5.05 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
application: oppiaserver
version: default
runtime: python27
api_version: 1
threadsafe: false
instance_class: F2
builtins:
- appstats: on
- deferred: on
- remote_api: on
inbound_services:
- warmup
- mail
handlers:
- url: /favicon.ico
static_files: assets/common/favicon.ico
upload: assets/common/favicon.ico
secure: always
http_headers:
Cache-Control: 'public, max-age=2592000'
Vary: Accept-Encoding
- url: /robots.txt
static_files: assets/common/robots.txt
upload: assets/common/robots.txt
secure: always
http_headers:
Cache-Control: 'public, max-age=2592000'
Vary: Accept-Encoding
- url: /build
static_dir: build
secure: always
expiration: 30d
http_headers:
Cache-Control: 'public, max-age=2592000'
- url: /assets/common
static_dir: assets/common
secure: always
http_headers:
# WARNING TO DEVELOPERS: Files in this folder may be stale for
# up to 10 mins after a code release.
Cache-Control: 'public, max-age=600'
- url: /assets
static_dir: assets
secure: always
application_readable: true
http_headers:
Cache-Control: 'public, max-age=60'
# Serve js scripts and css files under core/templates/dev/head.
# This regex allows us to recursively serve js scripts.
# "\1" inserts text captured by the capture group in the URL pattern.
- url: /templates/dev/head/(.*\.(js|css))$
static_files: core/templates/dev/head/\1
upload: core/templates/dev/head/(.*\.(js|css))$
secure: always
- url: /templates/dev/head/(.*\.(html))$
static_files: core/templates/dev/head/\1
upload: core/templates/dev/head/(.*\.(html))$
# TODO(vojtechjelinek): Remove application_readable after all
# components are referenced directly by URL
application_readable: true
secure: always
- url: /third_party/static
static_dir: third_party/static
secure: always
http_headers:
Cache-Control: 'public, max-age=2592000'
Vary: Accept-Encoding
- url: /third_party/generated
static_dir: third_party/generated
secure: always
http_headers:
# TODO(Sean Lip): Add cache when system to break cache during
# new release is figured out.
Cache-Control: 'no-cache'
- url: /extensions/interactions/(.*)/static/(.*)
static_files: extensions/interactions/\1/static/\2
upload: extensions/interactions/(.*)/static/(.*)
secure: always
http_headers:
Cache-Control: 'no-cache'
- 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
http_headers:
Cache-Control: 'no-cache'
# Serve js scripts for gadgets, interactions, rich_text_components 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)/(.*\.(js|png))$
static_files: extensions/\1/\2
upload: extensions/(interactions|rich_text_components|objects|classifiers)/(.*\.(js|png))$
secure: always
- url: /extensions/visualizations/(.*\.html)
static_files: extensions/visualizations/\1
upload: extensions/visualizations/(.*\.html)
secure: always
http_headers:
Cache-Control: 'no-cache'
- url: /mapreduce/pipeline/images
static_dir: third_party/gae-mapreduce-1.9.17.0/mapreduce/lib/pipeline/ui/images
secure: always
- 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
- url: /.*
script: main.app
secure: always
libraries:
- name: jinja2
version: '2.6'
- name: numpy
version: '1.6.1'
# This is needed for sending requests to a mailgun HTTPS URL.
- name: ssl
version: '2.7.11'
- name: webapp2
version: '2.5.2'
env_variables:
PYTHONHTTPSVERIFY: 1
skip_files:
# .pyc and .pyo files
- ^(.*/)?.*\.py[co]$
# Unix hidden files whose names begin with a dot
- ^(.*/)?\..*$
# Karma test files
- ^(.*/)Spec.js$
# Other folders to ignore
- tests/
- scripts/
- integrations/
- integrations_dev/
# 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.
- third_party/static/angular-audio-1.7.4
- third_party/static/angular-scroll-1.0.0
- third_party/static/angular-toastr-1.7.0
- third_party/static/font-awesome-4.4.0
- third_party/static/messageformat-0.3.1
- third_party/static/ng-img-crop-0.3.2
- third_party/static/nginfinitescroll-1.0.0
- third_party/static/perfectscrollbar-0.6.16
- third_party/static/textAngular-1.4.5
- third_party/static/widget