forked from hlemorvan/callForPaper
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathapp.yaml
43 lines (36 loc) · 992 Bytes
/
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
service: default
runtime: python27
api_version: 1
threadsafe: true
default_expiration: "30d"
inbound_services:
- warmup
handlers:
# re-direct to index.html if no path is give
- url: /
static_files: index.html
upload: index.html
expiration: "0d 5m"
secure: always
# http_headers:
# Link: '</bundle.js>; rel=preload; as=script, </ge.png>; rel=preload; as=image'
# re-direct to index.html
- url: /index.html(.*)
static_files: index.html
upload: index.html(.*)
expiration: "0d 5m"
secure: always
# access the static resources in the root director
- url: /(.*\.(css|gif|png|jpg|jpeg|ico|js|html|htm|xml|txt|ttf|json|svg|woff|woff2|eot|xcf|pdf))
static_files: \1
upload: (.*\.(css|gif|png|jpg|jpeg|ico|js|html|htm|xml|txt|ttf|json|svg|woff|woff2|eot|xcf|pdf))
# redirect to index.html for history html5 api
- url: /(.*)
static_files: index.html
upload: index.html
expiration: "0d 5m"
secure: always
skip_files:
- ^node_modules/*.*
- ^\.git/*.*
- ^\.tmp/*.*