-
Notifications
You must be signed in to change notification settings - Fork 29
/
app.yaml
71 lines (57 loc) · 1.98 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
# Google App Engine application config file tailored to static websites.
# Complete documentation can be found here:
# https://developers.google.com/appengine/docs/php/config/appconfig
api_version: 1
threadsafe: yes
runtime: php55
application: replace-with-your-project-id
version: 1
default_expiration: "1d"
handlers:
# Manifest files
- url: /(.+\.(appcache))
static_files: \1
upload: static/(.+\.(appcache))
mime_type: text/cache-manifest
expiration: "0s"
- url: /(.+\.webapp)
static_files: \1
upload: (.+\.webapp)
mime_type: application/x-web-app-manifest+json
expiration: "0s"
# Fonts and images
- url: /(.+\.(eot|otf|tt[cf]|woff2?|cur|gif|ico|jpe?g|png|svgz?|webp))
static_files: \1
upload: (.+\.(eot|otf|tt[cf]|woff2?|cur|gif|ico|jpe?g|png|svgz?|webp))
http_headers:
# Allow cross-origin access to web fonts and images
# You can also replace "*" with a specific host, e.g. https://example.org
Access-Control-Allow-Origin: "*"
# CSS, Javascript, text and other file types
- url: /(.+\.(css|js|xml|txt))
static_files: \1
upload: (.+\.(css|js|xml|txt))
expiration: "10m"
# HTML pages
- url: /(.+\.html)
static_files: \1
upload: (.+\.html)
expiration: "10m"
http_headers:
# Force Internet Explorer to render pages in the highest available
# mode in the various cases when it may not.
# https://hsivonen.fi/doctype/#ie8
X-UA-Compatible: "IE=edge"
# For more details on how to craft a reasonable policy for your site, read:
# http://www.html5rocks.com/en/tutorials/security/content-security-policy/ (or
# the specification: http://www.w3.org/TR/CSP11/). Also, to make things easier,
# you can use an online CSP header generator such as: http://cspisawesome.com/.
#Content-Security-Policy: "script-src 'self'; object-src 'self'"
# Homepage
- url: /
static_files: index.html
upload: index\.html
expiration: "10m"
http_headers:
X-UA-Compatible: "IE=edge"
#Content-Security-Policy: "script-src 'self'; object-src 'self'"