-
Notifications
You must be signed in to change notification settings - Fork 14
/
app.yaml
42 lines (36 loc) · 935 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
runtime: python27
api_version: 1
threadsafe: true
default_expiration: "1m"
handlers:
- url: /Home
static_files: _site/index.html
upload: _site/index.html
secure: always
redirect_http_response_code: 301
- url: /(.+)/
static_files: _site/\1/index.html
upload: _site/(.+)/index.html
secure: always
redirect_http_response_code: 301
# site root
- url: /
static_files: _site/index.html
upload: _site/index.html
secure: always
redirect_http_response_code: 301
# For folders without trailing slashes - ideally a 301 redirect, but we're static & it isn't 2004
- url: /([^\.]+)([^/])
static_files: _site/\1\2/index.html
upload: _site/(.+)
secure: always
redirect_http_response_code: 301
# Redirect Everything else
- url: /(.+)
static_files: _site/\1
upload: _site/(.+)
secure: always
redirect_http_response_code: 301
# individual error page ;-( only working local
error_handlers:
- file: 404.html