Created
December 16, 2017 13:35
-
-
Save descovi/948c94aeb337e44e54e5480c92907104 to your computer and use it in GitHub Desktop.
Configurazione per integrazione con amazon s3 e paperclip.
This file contains 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
secrets = Rails.application.secrets | |
config.paperclip_defaults = { | |
storage: :s3, | |
s3_credentials: { | |
bucket: secrets.amazon_bucket_name, | |
access_key_id: secrets.amazon_access_key_id, | |
secret_access_key: secrets.amazon_secret_access_key, | |
s3_region: "eu-central-1" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment