Paperclip is missing the Protocol (https) with Amazon S3

后端 未结 2 840
小蘑菇
小蘑菇 2021-01-17 04:56

In production.rb:

config.paperclip_defaults = {
    s3_host_name: \"s3.#{ENV.fetch(\'AWS_REGION\')}.amazonaws.com\",
    storage: :s3,
    s3_credentials: {
         


        
2条回答
  •  猫巷女王i
    2021-01-17 05:30

    You need to explicitly add the protocol to your configuration:

    :s3_protocol => :https
    

提交回复
热议问题