이 웹사이트는 자바스크립트 활성화가 필요합니다.
홈
탐색
도움말
로그인
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 Options
Show Stats
Download Patch File
Download Diff File
+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,
}
쓰기
미리보기
불러오는 중...
취소
저장