website/s3_website.yml (62 lines of code) (raw):

s3_id: <%= ENV['AWS_ACCESS_KEY_ID'] %> s3_secret: <%= ENV['AWS_SECRET_ACCESS_KEY'] %> s3_bucket: <%= ENV['S3_BUCKET'] %> exclude_from_upload: - .git - .hg cloudfront_distribution_id: <%= ENV['CLOUDFRONT_ID'] %> cloudfront_invalidate_root: true cloudfront_wildcard_invalidation: true redirects: index.html: en/ about/: en/docs/lang/ docs/: en/docs/ docs/about-flow.html: en/docs/lang/ docs/getting-started.html: en/docs/getting-started/ # docs/five-simple-examples.html: ?? docs/new-project.html: en/docs/usage/ docs/existing.html: en/docs/usage/ docs/type-annotations.html: en/docs/types/ docs/third-party.html: en/docs/libdefs/ docs/running.html: en/docs/tools/ # docs/troubleshooting.html: docs/cli.html: en/docs/cli/ docs/advanced-configuration.html: en/docs/config/ docs/quick-reference.html: en/docs/types/ docs/syntax.html: en/docs/types/ docs/builtins.html: en/docs/types/primitives/ docs/arrays.html: en/docs/types/arrays/ docs/classes.html: en/docs/types/classes/ docs/objects.html: en/docs/types/objects/ docs/functions.html: en/docs/types/functions/ docs/variance.html: en/docs/lang/variance/ docs/nullable-types.html: en/docs/types/maybe/ docs/destructuring.html: en/docs/lang/types-and-expressions/ docs/type-aliases.html: en/docs/types/aliases/ docs/union-intersection-types.html: en/docs/types/unions/ docs/typeof.html: en/docs/types/typeof/ docs/dynamic-type-tests.html: en/docs/lang/refinements/ docs/disjoint-unions.html: en/docs/types/unions/ docs/modules.html: en/docs/types/modules/ docs/declarations.html: en/docs/libdefs/ docs/utility-types.html: en/docs/types/utilities/ docs/react.html: en/docs/frameworks/react/ blog/2016/10/13/Flow-Typed.html: blog/2016/10/13/Flow-Typed/ blog/2016/10/04/Property-Variance.html: blog/2016/10/04/Property-Variance/ blog/2016/08/01/Windows-Support.html: blog/2016/08/01/Windows-Support/ blog/2016/07/01/New-Unions-Intersections.html: blog/2016/07/01/New-Unions-Intersections/ blog/2016/02/02/Version-0.21.0.html: blog/2016/02/02/Version-0.21.0/ blog/2015/12/01/Version-0.19.0.html: blog/2015/12/01/Version-0.19.0/ blog/2015/11/09/Generators.html: blog/2015/11/09/Generators/ blog/2015/10/07/Version-0.17.0.html: blog/2015/10/07/Version-0.17.0/ blog/2015/09/22/Version-0.16.0.html: blog/2015/09/22/Version-0.16.0/ blog/2015/09/10/Version-0.15.0.html: blog/2015/09/10/Version-0.15.0/ blog/2015/07/29/Version-0.14.0.html: blog/2015/07/29/Version-0.14.0/ blog/2015/07/03/Disjoint-Unions.html: blog/2015/07/03/Disjoint-Unions/ blog/2015/03/12/Bounded-Polymorphism.html: blog/2015/03/12/Bounded-Polymorphism/ blog/2015/02/20/Flow-Comments.html: blog/2015/02/20/Flow-Comments/ blog/2015/02/18/Typecasts.html: blog/2015/02/18/Typecasts/ blog/2015/02/18/Import-Types.html: blog/2015/02/18/Import-Types/ ignore_on_server: - assets/v.* - assets/master - static/v.* - static/master # Below are examples of all the available configurations. # See README for more detailed info on each of them. # site: path-to-your-website # index_document: index.html # error_document: error.html # max_age: # "assets/*": 6000 # "*": 300 # 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 # s3_reduced_redundancy: true # cloudfront_distribution_config: # default_cache_behavior: # min_TTL: <%= 60 * 60 * 24 %> # aliases: # quantity: 1 # items: # CNAME: your.website.com # 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