Skip to content

Commit

Permalink
fix: rename AWS variables
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya authored and ezekg committed Jan 30, 2025
1 parent 72691d0 commit 06b61cd
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions config/initializers/s3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
AWS_SECRET_ACCESS_KEY = ENV['AWS_SECRET_ACCESS_KEY']
AWS_BUCKET = ENV['AWS_BUCKET']
AWS_REGION = ENV['AWS_REGION']
AWS_ENDPOINT_URL_S3 = ENV['AWS_ENDPOINT_URL_S3']
AWS_FORCE_PATH_STYLE_S3 = ENV['AWS_FORCE_PATH_STYLE_S3']
AWS_ENDPOINT = ENV['AWS_ENDPOINT'] || ENV['AWS_ENDPOINT_URL_S3']
AWS_FORCE_PATH_STYLE = ENV['AWS_FORCE_PATH_STYLE'].in?(%w[true t 1])

AWS_CLIENT_OPTIONS = {
access_key_id: AWS_ACCESS_KEY_ID,
secret_access_key: AWS_SECRET_ACCESS_KEY,
region: AWS_REGION,
endpoint: AWS_ENDPOINT_URL_S3,
force_path_style: AWS_FORCE_PATH_STYLE_S3,
}.compact.freeze
endpoint: AWS_ENDPOINT,
force_path_style: AWS_FORCE_PATH_STYLE,
}.compact_blank
.freeze

0 comments on commit 06b61cd

Please sign in to comment.