-
Notifications
You must be signed in to change notification settings - Fork 33
/
app.yaml
72 lines (59 loc) · 1.44 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
application: epubjs-reader
version: 1
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /(.*\.css)
mime_type: text/css
static_files: src/\1
upload: src/(.*\.css)
- url: /(.*\.html)
mime_type: text/html
static_files: src/\1
upload: src/(.*\.html)
- url: /(.+)/(.*\.xhtml)
mime_type: application/xhtml+xml
static_files: src/\1/\2
upload: src/(.*\.xhtml)
- url: /(.*\.js)
mime_type: text/javascript
static_files: src/\1
upload: src/(.*\.js)
- url: /(.*\.json)
mime_type: application/json
static_files: src/\1
upload: src/(.*\.json)
- url: /(.*\.xml)
mime_type: application/xml
static_files: src/\1
upload: src/(.*\.xml)
# image files
- url: /(.*\.(bmp|gif|ico|jpeg|jpg|png|svg))
static_files: src/\1
upload: src/(.*\.(bmp|gif|ico|jpeg|jpg|png|svg))
# font files
- url: /(.*\.(otf|eot|ttf|woff))
static_files: src/\1
upload: src/(.*\.(otf|eot|ttf|woff))
# book files
- url: /(.*\.opf)
mime_type: application/oebps-package+xml
static_files: src/\1
upload: src/(.*\.opf)
- url: /(.*\.ncx)
mime_type: application/x-dtbncx+xml
static_files: src/\1
upload: src/(.*\.ncx)
# index files
- url: /(.+)/
static_files: src/\1/index.html
upload: src/(.+)/index.html
# redirect to 'url + /index.html' url.
# - url: /(.+)
# static_files: src/redirector.html
# upload: src/redirector.html
# site root
- url: /(([^/]+).xhtml|((\d+)/(.+)))?
static_files: src/index.html
upload: src/index.html