This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Change to switch signature version for Amazon S3 (
#2124
)
closed-social-glitch-2
Yamagishi Kazutoshi
7 years ago
committed by
Eugen
parent
8bac0350d1
commit
8b8e140c71
2 changed files
with
2 additions
and
0 deletions
Split View
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
View File
@ -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
View File
@ -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
,
}
Write
Preview
Loading…
Cancel
Save