-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.yaml
More file actions
213 lines (168 loc) · 3.93 KB
/
app.yaml
File metadata and controls
213 lines (168 loc) · 3.93 KB
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
application: open-fire
version: linkcrawler
runtime: python27
api_version: 1
threadsafe: yes
default_expiration: "0m"
#### ===== Files to Skip
skip_files:
- ^(.*/)?app\.yaml
- ^(.*/)?app\.yml
- ^(.*/)?index\.yaml
- ^(.*/)?index\.yml
- ^(.*/)?#.*#
- ^(.*/)?.*~
- ^(.*/)?.*\.py[co]
- ^(.*/)?.*/RCS/.*
- ^(.*/)?\..*
- ^(.*/)?tests$
#### ===== Libraries
libraries:
- name: jinja2
version: "latest"
- name: markupsafe
version: "latest"
- name: webob
version: "latest"
- name: setuptools
version: "latest"
#### ===== Builtin SDK Includes
#builtins:
#- appstats: on
#- deferred: on
#- mapreduce: on
#- remote_api: on
#- admin_redirect: on
#- datastore_admin: on
#### ===== Incoming Services
#inbound_services:
#- mail
#- warmup
#- xmpp_message
#- xmpp_presence
#- xmpp_subscribe
#- channel_presence
#### ===== Force precompilation
derived_file_type:
- python_precompiled
#### ===== Custom Admin Pages
admin_console:
pages:
- name: Developer's Console
url: /_app/dev
- name: Management Console
url: /_app/manage
- name: Map/Reduce
url: /_ah/mapreduce/
- name: Pipelines
url: /_ah/pipeline/status
- name: AppStats
url: /_ah/stats
#### ===== Error Handlers
error_handlers:
- file: errors/default_error.html
- error_code: over_quota
file: errors/over_quota.html
- error_code: dos_api_denial
file: errors/dos_denial.html
- error_code: timeout
file: errors/timeout.html
#### ===== Site Handlers
handlers:
###### Library/system mappings
# AppTools: development + debugging console
- url: /_ah/apptools.*
script: lib.apptools.gateway
login: admin
auth_fail_action: unauthorized
- url: /_app/manifest.*
script: lib.apptools.gateway
login: optional
secure: optional
auth_fail_action: unauthorized
- url: /_app/sitemap.*
script: lib.apptools.gateway
login: optional
secure: optional
auth_fail_action: unauthorized
# AppTrace: memory profiling
- url: /_ah/apptrace.*
script: lib.dist.apptrace.overview.main
login: admin
auth_fail_action: unauthorized
# AppStats: RPC profiling
- url: /_ah/appstats.*
script: google.appengine.ext.appstats.ui.app
login: admin
secure: always
auth_fail_action: unauthorized
# AppEngine Pipelines
- url: /_ah/pipeline.*
script: main.pipelines
# Instance Warmup Hook
- url: /_ah/warmup.*
script: main.warmup
login: admin
auth_fail_action: unauthorized
# Backend Start Hook
- url: /_ah/start.*
script: main.backend
login: admin
auth_fail_action: unauthorized
###### Asset Handlers
# Images (Static)
- url: /assets/img/static
static_dir: assets/img/static
expiration: "364d"
# Style (Static)
- url: /assets/style/static
static_dir: assets/style/static
mime_type: text/css
expiration: "364d"
# Scripts (Static)
- url: /assets/js/static
static_dir: assets/js/static
mime_type: text/javascript
expiration: "364d"
# Generic (Static)
- url: /assets/ext/static
static_dir: assets/ext/static
expiration: "364d"
# Dynamic Assets
- url: /assets/.*
script: main.DynamicAsset
###### Static Handlers
# Root-level files
- url: /apple-touch-icon\.png
mime_type: image/png
static_files: static/apple-touch-icon.png
upload: static/apple-touch-icon.png
- url: /favicon\.ico
mime_type: image/png
static_files: static/favicon.ico
upload: static/favicon.ico
expiration: "0m"
- url: /(robots\.txt|humans\.txt|crossdomain\.xml)
static_files: static/\1
upload: static/(.*)
expiration: "0m"
# Static HTML5 Appcache Manifest
- url: /(.*\.(appcache|manifest))
mime_type: text/cache-manifest
static_files: static/appcache/\1
upload: static/(.*\.(appcache|manifest))
expiration: "0m"
# Chrome Extensions
- url: /(.*\.crx)
mime_type: application/x-chrome-extension
static_files: static/\1
upload: static/(.*\.crx)
###### Static directory
- url: /static
static_dir: static
###### Everything else goes to AppTools
- url: /.*
login: optional
secure: optional
script: lib.apptools.dispatch.gateway
auth_fail_action: redirect