Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Milan
diaspora
Commits
5ea7b8ee
Unverified
Commit
5ea7b8ee
authored
Aug 22, 2017
by
Benjamin Neff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set fog_provider and load carrierwave/storage/fog if S3 is enabled
Fixes #7563 closes #7566
parent
398235ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Changelog.md
Changelog.md
+2
-1
config/initializers/carrierwave.rb
config/initializers/carrierwave.rb
+2
-0
No files found.
Changelog.md
View file @
5ea7b8ee
...
...
@@ -5,7 +5,8 @@
*
Remove Internet Explorer workarounds
[
#7557
](
https://github.com/diaspora/diaspora/pull/7557
)
## Bug fixes
*
Fix displaying posts with long labels
[
#7579
](
https://github.com/diaspora/diaspora/pull/7579
)
*
Fix displaying polls with long answers
[
#7579
](
https://github.com/diaspora/diaspora/pull/7579
)
*
Fix S3 support
[
#7566
](
https://github.com/diaspora/diaspora/pull/7566
)
## Features
*
Ask for confirmation when leaving a submittable comment field
[
#7530
](
https://github.com/diaspora/diaspora/pull/7530
)
...
...
config/initializers/carrierwave.rb
View file @
5ea7b8ee
...
...
@@ -6,6 +6,8 @@
ENV
[
'SSL_CERT_FILE'
]
=
AppConfig
.
environment
.
certificate_authorities
.
get
CarrierWave
.
configure
do
|
config
|
if
!
Rails
.
env
.
test?
&&
AppConfig
.
environment
.
s3
.
enable?
config
.
fog_provider
=
"fog/aws"
require
"carrierwave/storage/fog"
config
.
storage
=
:fog
config
.
cache_dir
=
Rails
.
root
.
join
(
'tmp'
,
'uploads'
).
to_s
config
.
fog_credentials
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment