I want to use fog_authenticated_url_expiration
def fog_public
false
end
It works great, however because of S3's issue with subdomains and dots (.) in bucket names. My path has SSL warnings and I can't change the bucket name to be otherwise to keep my routes working correctly.
Amazon S3 - HTTPS/SSL - Is it possible?
The default carrierwave path for authenticated urls produces SSL warnings because of the subdomain:
https://subdomain.domain.com.s3-eu-west-1.amazonaws.com/uploads/quiz/131/question_sheet/Q286.pdf?AWSAccessKeyId=AKIAJKOSTQ6UXXLEWIUQ&Signature=xdHUEiNjEZxftVxr5rw7uHaMmwk%3D&Expires=1387662760
Whereas this formula would work fine:
https://s3-eu-west-1.amazonaws.com/subdomain.domain.com/uploads/quiz/131/question_sheet/Q286.pdf?AWSAccessKeyId=AKIAJKOSTQ6UXXLEWIUQ&Signature=xdHUEiNjEZxftVxr5rw7uHaMmwk%3D&Expires=1387662760
How can I override the path style in carrierwave to use the second one to avoid SSL issues?