Skip to content
Snippets Groups Projects
Commit 45230c56 authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Improve S3 config

parent 3ab193bc
No related branches found
No related tags found
No related merge requests found
......@@ -7,4 +7,7 @@ if ENV['S3_ENABLED'] == 'true'
secret_access_key: ENV.fetch('AWS_SECRET_ACCESS_KEY'),
s3_region: ENV.fetch('S3_REGION')
}
Paperclip::Attachment.default_options[:url] = ':s3_domain_url'
Paperclip::Attachment.default_options[:path] = '/:class/:attachment/:id_partition/:style/:filename'
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment