Hugo Dark Theme Site Generator https://after-dark.habd.as
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

s3_website.yml 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. s3_id: <%= ENV['S3_ACCESS_KEY_ID'] %>
  2. s3_secret: <%= ENV['S3_SECRET_KEY'] %>
  3. s3_bucket: after-dark.habd.as
  4. # Below are examples of all the available configurations.
  5. # See README for more detailed info on each of them.
  6. site: public
  7. index_document: index.html
  8. error_document: 404.html
  9. # cache static assets for 20 years
  10. max_age:
  11. "js/*": 630720000
  12. "fonts/*": 630720000
  13. "images/*": 630720000
  14. "*": 300
  15. gzip:
  16. - .html
  17. - .js
  18. - .css
  19. - .xml
  20. # gzip_zopfli: true
  21. # See http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region for valid endpoints
  22. # s3_endpoint: ap-northeast-1
  23. # ignore_on_server: that_folder_of_stuff_i_dont_keep_locally
  24. # exclude_from_upload:
  25. # - those_folders_of_stuff
  26. # - i_wouldnt_want_to_upload
  27. s3_reduced_redundancy: true
  28. cloudfront_distribution_id: <%= ENV['CLOUDFRONT_DISTRIBUTION_ID'] %>
  29. cloudfront_distribution_config:
  30. default_cache_behavior:
  31. min_ttl: <%= 60 * 60 * 24 %>
  32. http_version: http2
  33. aliases:
  34. quantity: 1
  35. items:
  36. - after-dark.habd.as
  37. # cloudfront_invalidate_root: true
  38. cloudfront_wildcard_invalidation: true
  39. # concurrency_level: 5
  40. # redirects:
  41. # index.php: /
  42. # about.php: about.html
  43. # music-files/promo.mp4: http://www.youtube.com/watch?v=dQw4w9WgXcQ
  44. # routing_rules:
  45. # - condition:
  46. # key_prefix_equals: blog/some_path
  47. # redirect:
  48. # host_name: blog.example.com
  49. # replace_key_prefix_with: some_new_path/
  50. # http_redirect_code: 301