-
Notifications
You must be signed in to change notification settings - Fork 0
/
s3_website.yml
91 lines (74 loc) · 2.77 KB
/
s3_website.yml
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
82
83
84
85
86
87
88
89
90
91
# You can remove these two lines to have credentials read from
# the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY or
# ~/.aws/credentials.
s3_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
s3_secret: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
s3_bucket: <%= ENV['STATIC_SITE_BUCKET'] %>
# set session_token if using temporary credentials with a session token (eg: when assuming a role)
# session_token: YOUR_AWS_S3_SESSION_TOKEN
# Below are examples of all the available configurations.
# See README for more detailed info on each of them.
site: build
index_document: index.html
error_document: 404.html
cache_control:
'assets/*': public, max-age=86400
#TODO: confirm this works
'*.jpg': public, max-age=86400
'*.png': public, max-age=86400
'favicon.ico': public, max-age=86400
'browserconfig.xml': public, max-age=86400
'robots.txt': public, max-age=86400
'humans.txt': public, max-age=86400
'*': no-cache, no-store
# gzip:
# - .html
# - .css
# - .md
# gzip_zopfli: true
# See http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region for valid endpoints
# s3_endpoint: ap-northeast-1
# ignore_on_server: that_folder_of_stuff_i_dont_keep_locally
# exclude_from_upload:
# - those_folders_of_stuff
# - i_wouldnt_want_to_upload
# reduces the cost of storing things on S3
s3_reduced_redundancy: true
cloudfront_distribution_id: <%= ENV['STATIC_SITE_CLOUDFRONT'] %>
# cloudfront_distribution_config:
# default_cache_behavior:
# min_ttl: <%= 60 * 60 * 24 %>
# aliases:
# quantity: 1
# items:
# - your.website.com
# cloudfront_invalidate_root: true
cloudfront_wildcard_invalidation: true
# concurrency_level: 5
redirects:
# I shared this URL with a buncha NERT members
radio: 2017/10/11/san-francisco-emergency-radio-setup
# for convenience
fb: https://www.facebook.com/adanalifeblog
facebook: https://www.facebook.com/adanalifeblog
youtube: https://www.youtube.com/channel/UC8Q7uFC1Xyr2ZnTWOk9Aizg
instagram: https://instagram.com/adanalife_
twitter: https://twitter.com/adanalife_
twitch: https://twitch.tv/adanalife_
# I renamed these articles
2018/03/05/trip-recap-central-coast: 2018/03/05/trip-report-central-coast
2019/01/13/eleven-month-update/: 2019/01/13/post-adventure-summary
# in case people try to change the number and expect it to work
2017/10/01/how-this-site-works-p-2: 2017/10/12/how-this-site-works-p-2
2017/10/12/how-this-site-works-p-1: 2017/10/01/how-this-site-works
# this was posted on my flyer
van-tour: https://youtu.be/_own6DuEpLc
# the stream survey
survey: https://forms.gle/a52NamfEfCcSP7Vc9
# 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