-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.yaml
46 lines (42 loc) · 1.27 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
runtime: nodejs10
handlers:
# Serve all static files with urls ending with a file extension
- url: /(.*\..+)$
static_files: dist/\1
secure: always
http_headers:
Strict-Transport-Security: max-age=63072000
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
upload: dist/(.*\..+)$
# Catch all files not specified in this file and redirect to the main page
- url: /.*
static_files: dist/index.html
secure: always
http_headers:
Strict-Transport-Security: max-age=63072000
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
upload: dist/index.html
# Serve landing page files
- url: /about/.*
static_files: dist/about/index.html
secure: always
http_headers:
Strict-Transport-Security: max-age=63072000
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
upload: dist/about/index.html
# Redirect /about/ to /about/index.html
- url: /about/
static_files: dist/about/index.html
secure: always
http_headers:
Strict-Transport-Security: max-age=63072000
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
upload: dist/about/index.html