WIP fix aws address issue
This commit is contained in:
parent
be98ec94b7
commit
f1027ab564
2 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,6 @@ class ProfilesController < ApplicationController
|
|||
@profile = current_user.profile
|
||||
end
|
||||
@profile.update_attributes(params[:profile])
|
||||
puts Settings.image&.host
|
||||
json_saved @profile, 'Profile updated'
|
||||
end
|
||||
|
||||
|
|
|
@ -4,7 +4,8 @@ CarrierWave.configure do |config|
|
|||
config.storage = :aws
|
||||
config.aws_bucket = Settings.aws.bucket
|
||||
config.aws_acl = :public_read
|
||||
config.asset_host = Settings.image&.host || "https://s3-#{Settings.aws.region}.amazonaws.com/#{Settings.aws.bucket}"
|
||||
# config.asset_host = Settings.image&.host || "https://s3-#{Settings.aws.region}.amazonaws.com/#{Settings.aws.bucket}"
|
||||
config.asset_host = "https://s3.amazonaws.com/#{Settings.aws.bucket}"
|
||||
config.aws_authenticated_url_expiration = 60 * 60 * 24 * 365
|
||||
config.aws_credentials = {
|
||||
access_key_id: Settings.aws.access_key_id,
|
||||
|
|
Loading…
Reference in a new issue