forked from golang101/golang101
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.yaml
52 lines (48 loc) · 1.23 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
runtime: go111
automatic_scaling:
target_cpu_utilization: 0.91
max_concurrent_requests: 64
min_pending_latency: 300ms
default_expiration: "3650d"
#handlers:
#- url: /static
# static_dir: web/static
# secure: always
# redirect_http_response_code: 301
#- url: /article/res
# static_dir: articles/res
# secure: always
# redirect_http_response_code: 301
#- url: /.*
# script: auto
# secure: always
# redirect_http_response_code: 301
handlers:
- url: /static
static_dir: generated/static
secure: always
redirect_http_response_code: 301
- url: /article/res
static_dir: generated/article/res
secure: always
redirect_http_response_code: 301
- url: /article
expiration: "3d"
static_dir: generated/article
secure: always
redirect_http_response_code: 301
- url: /favicon\.ico
static_files: generated/static/go101/images/101-v1.ico
upload: generated/static/go101/images/101\-v1\.ico
- url: /robots\.txt
static_files: generated/static/go101/txt/robots.txt
upload: generated/static/go101/txt/robots\.txt
- url: /((.*)\.(xml|php))$
static_files: generated/\1
upload: generated/.*\.(xml|php)$
secure: always
redirect_http_response_code: 301
- url: /.*
script: auto
secure: always
redirect_http_response_code: 301