Skip to content

Instantly share code, notes, and snippets.

@vincentlkl
Created July 20, 2016 13:26
Show Gist options
  • Select an option

  • Save vincentlkl/0eb0a72b7cb779c4a1b0e6cbd86673dc to your computer and use it in GitHub Desktop.

Select an option

Save vincentlkl/0eb0a72b7cb779c4a1b0e6cbd86673dc to your computer and use it in GitHub Desktop.

Revisions

  1. vincentlkl created this gist Jul 20, 2016.
    6 changes: 6 additions & 0 deletions s3_direct_upload.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    # config/initializers/s3_direct_upload.rb
    S3DirectUpload.config do |c|
    c.access_key_id = ENV['AWS_ACCESS_KEY_ID']
    c.secret_access_key = ENV['AWS_SECRET_ACCESS_KEY']
    c.bucket = ENV['AWS_DIRECT_BUCKET']
    end