-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy paths3_website.yml
More file actions
81 lines (64 loc) · 1.67 KB
/
s3_website.yml
File metadata and controls
81 lines (64 loc) · 1.67 KB
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
72
73
74
75
76
77
78
79
80
81
s3_id: <%= ENV['AWS_DEPLOY_API_KEY'] %>
s3_secret: <%= ENV['AWS_DEPLOY_API_SECRET'] %>
s3_bucket: <%= ENV['DEPLOY_HOST'] %>
cloudfront_distribution_id: <%= ENV['CLOUDFRONT_DISTRIBUTION'] %>
site: <%= ENV['DEPLOY_DIR'] %>
s3_key_prefix: "<%= ENV['DEPLOY_PREFIX'] %>"
cloudfront_distribution_config:
default_cache_behavior:
min_TTL: 3600
aliases:
quantity: 1
items:
CNAME: <%= ENV['DEPLOY_HOST'] %>
gzip:
- .html
- .css
- .js
- .md
# Below are examples of all the available configurations.
# See README for more detailed info on each of them.
index_document: index.html
error_document: error.html
max_age:
"*": 86400
# gzip_zopfli: true
# See http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region for valid endpoints
s3_endpoint: eu-west-1
s3_reduced_redundancy: true
ignore_on_server:
- dev
- local
- staging
# exclude_from_upload:
# - those_folders_of_stuff
# - i_wouldnt_want_to_upload
exclude_from_upload:
- jspm_packages
- typings
- .*\.pem
- .*\.crt
- .*\.key
- .*\.scss
- .*\.ts
cloudfront_invalidate_root: true
routing_rules:
- condition:
http_error_code_returned_equals: 404
redirect:
host_name: <%= ENV['DEPLOY_HOST'] %>
protocol: https
replace_key_with: "/404.html"
http_redirect_code: 302
#concurrency_level: 5
# redirects:
# index.php: /
# about.php: about.html
# music-files/promo.mp4: http://www.youtube.com/watch?v=dQw4w9WgXcQ
# routing_rules:
# - condition:
# key_prefix_equals: blog/some_path
# redirect:
# host_name: blog.example.com
# replace_key_prefix_with: some_new_path/
# http_redirect_code: 301