# Use this setup block to configure all options available in Anaconda.
Anaconda.config do |config|
  config.aws = {
    aws_access_key: ENV["AWS_ACCESS_KEY"] || nil,
    aws_secret_key: ENV["AWS_SECRET_KEY"] || nil,
    aws_bucket:     ENV["AWS_BUCKET"]     || nil,
    aws_endpoint:   ENV["AWS_ENDPOINT"]   || nil, # example: anaconda-demo.s3-us-west-2.amazonaws.com or s3.amazonaws.com/not.dns.friendly.bucket
  }
  config.file_types = {
    audio:    /(\.|\/)(wav|mp3|m4a|aiff|ogg|flac)$/,
    video:    /(\.|\/)(mp[e]?g|mov|avi|mp4|m4v)$/,
    image:    /(\.|\/)(jp[e]?g|png|bmp)$/,
    resource: /(\.|\/)(pdf|ppt[x]?|doc[x]?|xls[x]?)$/,
  }
end
# Use this setup block to configure all options available in Anaconda.
Anaconda.config do |config|
  config.aws = {
    aws_access_key: ENV["AWS_ACCESS_KEY"] || nil,
    aws_secret_key: ENV["AWS_SECRET_KEY"] || nil,
    aws_bucket:     ENV["AWS_BUCKET"]     || nil,
    aws_endpoint:   ENV["AWS_ENDPOINT"]   || nil, # example: anaconda-demo.s3-us-west-2.amazonaws.com or s3.amazonaws.com/not.dns.friendly.bucket
  }
  config.file_types = {
    audio:    /(\.|\/)(wav|mp3|m4a|aiff|ogg|flac)$/,
    video:    /(\.|\/)(mp[e]?g|mov|avi|mp4|m4v)$/,
    image:    /(\.|\/)(jp[e]?g|png|bmp|gif)$/,
    resource: /(\.|\/)(pdf|ppt[x]?|doc[x]?|xls[x]?)$/,
  }
end
Add gif as a default supported file type.
Add gif as a default supported file type.
