Skip to content

Instantly share code, notes, and snippets.

@koolhead17
Created October 28, 2016 15:18
Show Gist options
  • Save koolhead17/4b9b354ee2e51fb264da9f94c8b1a6a0 to your computer and use it in GitHub Desktop.
Save koolhead17/4b9b354ee2e51fb264da9f94c8b1a6a0 to your computer and use it in GitHub Desktop.
config.paperclip_defaults = {
storage: :s3,
s3_protocol: ':https',
s3_permissions: 'public',
s3_region: 'us-east-1', #ENV.fetch("AWS_REGION"),
s3_credentials: {
bucket: 'kline', #ENV.fetch("AWS_BUCKET"),
access_key_id: 'Q3AM3UQ867SPQQA43P2F',#ENV.fetch("AWS_ACCESS_KEY_ID"),
secret_access_key: 'zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG', #ENV.fetch("AWS_SECRET_ACCESS_KEY"),
},
s3_host_name: 'play.minio.io:9000',
s3_options: {
endpoint: "https://play.minio.io:9000", # for aws-sdk
force_path_style: true # for aws-sdk (required for minio)
},
url: ':s3_path_url',
path: "/:class/:id.:style.:extension"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment