【发布时间】:2017-07-23 07:17:36
【问题描述】:
总是出现这个错误:
Seahorse::Client::NetworkingError in HomeController#import
hostname "loopimgstore2.s3.s3-eu-west-1.amazonaws.com" does not match the server certificate
尝试了一切,环境/production.rb 中的当前配置 config.paperclip_defaults = {
89 storage: :s3,
90 s3_protocol: 'http',
91 url: '":s3_path_url"',
92 #s3_host_name: 's3-eu-west-1.amazonaws.com',
93 s3_permissions: :public_read,
94 s3_region: 's3-eu-west-1',
95 s3_credentials: {
96 bucket: 'loopimgstore2',
97 access_key_id: '____',
98 secret_access_key: '____'
99 }
100 }
由于某种原因,我无法将 Paperclip 配置为 USE Path 样式的 url,它始终使用域样式并且显然不起作用。
【问题讨论】:
-
你读过这个吗? theverge.com/2017/3/2/14792442/…
-
@falsify 是的,但现在不相关了。就像 2 天前一样。
标签: ruby-on-rails ruby amazon-s3 paperclip