Created
October 28, 2016 15:18
-
-
Save koolhead17/4b9b354ee2e51fb264da9f94c8b1a6a0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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