使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
abunchtell
/
mastodon
关注
1
点赞
0
派生
0
代码
工单
0
动态
浏览代码
Change to switch signature version for Amazon S3 (
#2124
)
master
Yamagishi Kazutoshi
7 年前
committed by
Eugen
父节点
8bac0350d1
当前提交
8b8e140c71
共有
2 个文件被更改
,包括
2 次插入
和
0 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+1
-0
.env.production.sample
+1
-0
config/initializers/paperclip.rb
+ 1
- 0
.env.production.sample
查看文件
@@ -74,6 +74,7 @@ SMTP_FROM_ADDRESS=notifications@example.com
# S3_PROTOCOL=https
# S3_HOSTNAME=
# S3_ENDPOINT=
# S3_SIGNATURE_VERSION=
# Optional alias for S3 if you want to use Cloudfront or Cloudflare in front
# S3_CLOUDFRONT_HOST=
+ 1
- 0
config/initializers/paperclip.rb
查看文件
@@ -28,6 +28,7 @@ if ENV['S3_ENABLED'] == 'true'
unless ENV['S3_ENDPOINT'].blank?
Paperclip::Attachment.default_options[:s3_options] = {
endpoint: ENV['S3_ENDPOINT'],
signature_version: ENV['S3_SIGNATURE_VERSION'] || 'v4',
force_path_style: true,
}
撰写
预览
正在加载...
取消
保存