Skip to content

Commit

Permalink
Support filesystem backend for storage as well
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusmitrofan authored Sep 4, 2020
1 parent 9d7fc67 commit 62b74eb
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions sentry.conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,17 @@

# Uploaded media uses these `filestore` settings. The available
# backends are either `filesystem` or `s3`.

SENTRY_OPTIONS['filestore.backend'] = 's3'
SENTRY_OPTIONS['filestore.options'] = {
'bucket_name': env('SENTRY_FILESTORE_BUCKET_NAME')
}
filestore_s3 = env('SENTRY_FILESTORE_BUCKET_NAME')
if filestore_s3:
SENTRY_OPTIONS['filestore.backend'] = 's3'
SENTRY_OPTIONS['filestore.options'] = {
'location': env('SENTRY_FILESTORE_BUCKET_NAME')
}
else:
SENTRY_OPTIONS['filestore.backend'] = 'filesystem'
SENTRY_OPTIONS['filestore.options'] = {
'bucket_name': '/var/lib/sentry/files'
}

##############
# Web Server #
Expand Down

0 comments on commit 62b74eb

Please sign in to comment.