Skip to content

Commit

Permalink
fix proxy media storage config not working on CAPI (#2771)
Browse files Browse the repository at this point in the history
and allow it by default so there is no need for
additional config when switching from mongo to S3.

SDBELGA-909
  • Loading branch information
petrjasek authored Dec 6, 2024
1 parent ca7541c commit 606e036
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions content_api/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
CLIENT_URL,
DEBUG,
URN_DOMAIN,
PROXY_MEDIA_STORAGE_CHECK_EXISTS,
)

CONTENTAPI_INSTALLED_APPS = [
Expand Down
4 changes: 3 additions & 1 deletion superdesk/default_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,9 @@ def local_to_utc_hour(hour):
#: it should only check during migration, otherwise this generates unnecessary load on the s3
#:
#: .. versionadded:: 2.5
PROXY_MEDIA_STORAGE_CHECK_EXISTS = strtobool(env("PROXY_MEDIA_STORAGE_CHECK_EXISTS", "false"))
#: .. versionchanged:: 2.8.4
#: Default value changed to ``True``
PROXY_MEDIA_STORAGE_CHECK_EXISTS = strtobool(env("PROXY_MEDIA_STORAGE_CHECK_EXISTS", "true"))

#: uses for generation of media url ``(<media_prefix>/<media_id>)``::
MEDIA_PREFIX = env("MEDIA_PREFIX", "%s/upload-raw" % SERVER_URL.rstrip("/"))
Expand Down

0 comments on commit 606e036

Please sign in to comment.