forked from google/WebFundamentals
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.yaml
69 lines (59 loc) · 1.5 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
runtime: python27
api_version: 1
threadsafe: true
# application: petele-scratch
# version: wf-devsite
handlers:
- url: /robots.txt
static_files: gae/robots.txt
upload: gae/robots.txt
- url: /wf-local/scripts/
static_dir: gae/scripts/
- url: /wf-local/styles/
static_dir: gae/styles/
- url: /web/(.*\.(png|gif|jpg|svg|xml|mp4|webm|pdf|mp3|mov))
static_files: src/content/en/\1
expiration: 1d
upload: src/content/en/(.*\.(png|gif|jpg|svg|xml|mp4|webm|pdf|mp3|mov))
- url: /(.*\.ico)
static_files: src/content/en/images/\1
expiration: 7d
upload: src/content/en/images/(.*\.ico)
- url: /web/manifest.json
static_files: src/content/en/manifest.json
expiration: 1d
upload: src/content/en/manifest.json
- url: /web/(.*\.(js|css))
static_files: src/content/en/\1
expiration: 1d
upload: src/content/en/(.*\.(js|css))
http_headers:
Access-Control-Allow-Origin: https://developers.google.com
application_readable: true
- url: /web/(.*\.(woff|eot|ttf))
static_files: \1
expiration: 1d
upload: (.*\.(woff|eot|ttf))
http_headers:
Access-Control-Allow-Origin: https://developers.google.com
# This is simply a redirect from index to /web
- url: /(.*)
script: appengine_main.app
secure: always
skip_files:
- ^gulp-tasks/.*
- ^node_modules/.*
- ^scratch/.*
- ^tools/.*
- ^src/data/.*
- ^src/templates/.*
- ^(.*/)?#.*#$
- ^(.*/)?.*~$
- ^(.*/)?.*\.DS_Store$
- ^(.*/)?.*\.py[co]$
- ^(.*/)?.*/RCS/.*$
- ^(.*/)?.*\.psd$
- ^(.*/)?.*\.pxm$
- ^(.*/)?.*\.pyc$
- ^(.*/)?.*\.sh$
- ^(.*/)?\..*$