This repository has been archived by the owner on Dec 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
s3_website.yml
executable file
·69 lines (54 loc) · 1.88 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
s3_id: <%= ENV.fetch('AWS_S3_ACCESS_KEY_ID') %>
s3_secret: <%= ENV.fetch('AWS_S3_SECRET_ACCESS_KEY') %>
s3_bucket: <%= ENV.fetch('AWS_S3_BUCKET') %>
# Below are examples of all the available configurations.
# See README for more detailed info on each of them.
# max_age:
# "assets/*": 6000
# "*": 300
gzip: true
# 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
s3_reduced_redundancy: true
cloudfront_distribution_id: <%= ENV.fetch('AWS_CF_DISTRIBUTION_ID') %>
# cloudfront_distribution_config:
# default_cache_behavior:
# min_TTL: <%= 60 * 60 * 24 %>
# aliases:
# quantity: 1
# items:
# CNAME: your.website.com
cloudfront_invalidate_root: true
# concurrency_level: 5
# redirects:
# index.php: /
# about.php: about.html
# music-files/promo.mp4: http://www.youtube.com/watch?v=dQw4w9WgXcQ
#
redirects:
2014/03/23/apitools-hello-world.html: 2014/03/25/apitools-hello-world.html
2014/03/25/welcome-to-apitools.html: 2014/03/25/apitools-hello-world.html
docs/active-docs/index.html: docs/interactive-documentation/
docs/pipeline/index.html: docs/middleware/
docs/recipes/index.html: docs/middleware/
docs/middleware-examples/index.html: docs/middleware/
docs/tour/index.html: docs/getting-started/
docs/using-services/index.html: docs/test-debug/
middleware/index.html: docs/middleware/
# 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
# extensionless_mime_type: text/html