forked from oppia/oppia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.yaml
145 lines (141 loc) · 4.17 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
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/gadgets/(.*)/static/(.*)
static_files: extensions/gadgets/\1/static/\2
upload: extensions/gadgets/(.*)/static/(.*)
secure: always
http_headers:
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/rich_text_components/(.*)/static/(.*)
static_files: extensions/rich_text_components/\1/static/\2
upload: extensions/rich_text_components/(.*)/static/(.*)
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/(gadgets|interactions|rich_text_components|objects)/(.*\.(js))$
static_files: extensions/\1/\2
upload: extensions/(gadgets|interactions|rich_text_components|objects)/(.*\.(js))$
secure: always
- 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'
- name: webapp2
version: '2.5.2'
# This environmental variable is for serving minified resources
# when set to true. It allows minified resources to be used when
# running the server in the dev environment.
env_variables:
MINIFICATION: false