File tree Expand file tree Collapse file tree 4 files changed +30
-9
lines changed
Expand file tree Collapse file tree 4 files changed +30
-9
lines changed Original file line number Diff line number Diff line change @@ -48,9 +48,8 @@ gem "thruster", require: false
4848# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
4949gem "image_processing" , "~> 1.14"
5050
51- # Add tagging functionality
5251gem "acts-as-taggable-on"
53-
52+ gem "aws-sdk-s3" , require : false
5453gem "requestjs-rails"
5554
5655group :development , :test do
Original file line number Diff line number Diff line change 8585 public_suffix (>= 2.0.2 , < 7.0 )
8686 annotaterb (4.14.0 )
8787 ast (2.4.3 )
88+ aws-eventstream (1.3.2 )
89+ aws-partitions (1.1092.0 )
90+ aws-sdk-core (3.222.2 )
91+ aws-eventstream (~> 1 , >= 1.3.0 )
92+ aws-partitions (~> 1 , >= 1.992.0 )
93+ aws-sigv4 (~> 1.9 )
94+ base64
95+ jmespath (~> 1 , >= 1.6.1 )
96+ logger
97+ aws-sdk-kms (1.99.0 )
98+ aws-sdk-core (~> 3 , >= 3.216.0 )
99+ aws-sigv4 (~> 1.5 )
100+ aws-sdk-s3 (1.183.0 )
101+ aws-sdk-core (~> 3 , >= 3.216.0 )
102+ aws-sdk-kms (~> 1 )
103+ aws-sigv4 (~> 1.5 )
104+ aws-sigv4 (1.11.0 )
105+ aws-eventstream (~> 1 , >= 1.0.2 )
88106 base64 (0.2.0 )
89107 bcrypt (3.1.20 )
90108 bcrypt_pbkdf (1.1.1 )
166184 jbuilder (2.13.0 )
167185 actionview (>= 5.0.0 )
168186 activesupport (>= 5.0.0 )
187+ jmespath (1.6.2 )
169188 json (2.10.2 )
170189 kamal (2.5.3 )
171190 activesupport (>= 7.0 )
@@ -446,6 +465,7 @@ DEPENDENCIES
446465 active_storage_validations
447466 acts-as-taggable-on
448467 annotaterb
468+ aws-sdk-s3
449469 bcrypt (~> 3.1.7 )
450470 bootsnap
451471 brakeman
Original file line number Diff line number Diff line change 4040 config . cache_store = :memory_store
4141
4242 # Store uploaded files on the local file system (see config/storage.yml for options).
43- config . active_storage . service = :local
43+ config . active_storage . service = :amazon
4444
4545 config . action_mailer . delivery_method = :letter_opener
4646 config . action_mailer . perform_deliveries = true
Original file line number Diff line number Diff line change 77 root : <%= Rails.root.join("storage") %>
88
99# Use bin/rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
10- # amazon:
11- # service: S3
12- # access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
13- # secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
14- # region: us-east-1
15- # bucket: your_own_bucket-<%= Rails.env %>
10+ amazon :
11+ service : S3
12+ access_key_id : <%= ENV['AWS_ACCESS_KEY_ID'] %>
13+ secret_access_key : <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
14+ region : <%= ENV['AWS_DEFAULT_REGION'] %>
15+ bucket : <%= ENV['AWS_BUCKET_NAME'] %>
16+ endpoint : <%= ENV['AWS_ENDPOINT_URL'] %>
17+ force_path_style : true
1618
1719# Remember not to checkin your GCS keyfile to a repository
1820# google:
You can’t perform that action at this time.
0 commit comments