- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
通过 Fog gem 查询 Amazon S3 时,我收到以下警告:
[WARNING] fog: followed redirect to my-bucket.s3-external-3.amazonaws.com, connecting to the matching region will be more performant
到底如何“连接到匹配区域”?
最佳答案
将 Fog 连接参数中的 :region 选项设置为您的存储桶所在区域的名称。
例如,我在区域“eu-west-1”中有一个名为“bucket-a”的存储桶,我的 s3 key 和 secret 分别位于变量 s3_key 和 s3_secret 中。
我可以通过打开我的 Fog 连接来直接连接到该区域,如下所示:
s3 = Fog::Storage.new(provider: 'AWS', aws_access_key_id: s3_key, aws_secret_access_key: s3_secret, region: 'eu-west-1')
现在,当我列出内容时,不会发出区域警告:
s3.directories.get('bucket-a').files
如果您想对所有存储桶执行此操作,而不是逐个存储桶,您可以设置以下内容:
Fog::Storage::AWS::DEFAULT_REGION = 'eu-west-1'
关于amazon-s3 - Amazon S3 + 雾警告 : connecting to the matching region will be more performant,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16659691/
我已经编写了一个脚本来通过我的 Rackspace 云文件容器递归下载并检索每个文件的副本,所以我有一个本地备份以防 Rackspace 被 meteor 和/或 hindenbugs 击中。 但是,
我有一个问题,雾在使用 OpenGL 的桌面程序 (PC) 上的工作方式与预期相同,但相同的雾在 Android 设备上的工作方式与在 Android 设备上的工作方式不同(使用 OpenGL ES)
我正在尝试: 我正在构建一个包含地形的轻量级 GIS 应用程序。我想补充的一件事是大气阴霾。 我当前的代码: (请原谅我的代码,我有多个场景) fogColor = new THREE.Color
如何在不下载的情况下获取雾中 s3 对象的大小? 例如: connection.get_object(dir.key, latest_backup.key).body.size 要求我先下载对象。 如
我有 connection = Fog::Storage.new(fog_config) bucket = connection.directories.get(bucket_name
我在我的网站中使用 fog 和 carrierwave 。但是图像加载非常非常缓慢。 然后,我想使用CDN加快图像加载速度。 我已按照本教程为图像创建CDN: http://maketecheasie
我在尝试将 S3 服务与雾和 Jquery 文件上传 (https://github.com/blueimp/jQuery-File-Upload) 一起使用时遇到了这个问题 错误 Excon::Er
我正在尝试使用 Sprite 制作一个粒子系统,但问题是 Sprite 似乎不响应“雾”参数(即它不会随着距离而消失)。我可以使用粒子系统而不是使用许多 Sprite (因为粒子系统确实尊重雾参数),
我有一个使用 Carrierwave 进行文件上传的 Rails 应用程序。它一直运行良好,但我想开始使用 Amazon S3 进行图像存储。我收到此错误: ArgumentError ( is no
嗨,我正在尝试使用 ec2 的rubber gem,但在快速入门部分遇到一些问题。由于某种原因,橡胶下的雾没有找到 key 对。这是详细信息: 在 irb 中(这里的路径是我的 Rubber.yml
更新内容 我的设置现在如下: #Carrierwave Initializer CarrierWave.configure do |config| config.fog_credentials
我目前收到以下错误:Excon::Errors::SocketError - Broken pipe (Errno::EPIPE)上传大于 150kb 的图像时。 150kb 以下的图像正常工作。研究
我正在尝试将我的 Rails 4 项目连接到 Azure,我使用载波和雾来管理和存储图像。 这是我在启动服务器或控制台时遇到的错误: /Users/giulio/.rvm/gems/ruby-2.2.
我想从用户那里收集 HTML5 录音并将它们存储在 S3 中。我正在使用名为 MediaStreamRecorder.js 的 WebRTC 使用 javascript 资源进行浏览器内音频和视频录制
我是一名优秀的程序员,十分优秀!