Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypha
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ots
hypha
Commits
89af6eec
Commit
89af6eec
authored
6 years ago
by
Todd Dembrey
Committed by
Fredrik Jonsson
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Dont screw up the scheme
parent
03ef1701
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
opentech/storage_backends.py
+2
-2
2 additions, 2 deletions
opentech/storage_backends.py
with
2 additions
and
2 deletions
opentech/storage_backends.py
+
2
−
2
View file @
89af6eec
...
...
@@ -27,7 +27,7 @@ class PrivateMediaStorage(S3Boto3Storage):
encryption
=
True
file_overwrite
=
False
querystring_auth
=
True
url_protocol
=
'
https:
'
secure_urls
=
True
def
url
(
self
,
name
,
parameters
=
None
,
expire
=
None
):
url
=
super
().
url
(
name
,
parameters
,
expire
)
...
...
@@ -36,7 +36,7 @@ class PrivateMediaStorage(S3Boto3Storage):
# Django storage doesn't handle custom domains with auth strings
custom_domain
=
settings
.
AWS_PRIVATE_CUSTOM_DOMAIN
parts
=
list
(
parse
.
urlsplit
(
url
))
parts
[
0
:
3
]
=
self
.
url_protocol
,
custom_domain
,
filepath_to_uri
(
name
)
parts
[
1
:
3
]
=
custom_domain
,
filepath_to_uri
(
name
)
return
parse
.
urlunsplit
(
parts
)
return
url
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment