mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 10:41:15 +00:00
Use SSL setting based on url protocol
This commit is contained in:
parent
48aa141591
commit
6f326d5650
1 changed files with 2 additions and 1 deletions
|
@ -43,8 +43,9 @@ getS3Options = (credentials) ->
|
|||
secretAccessKey: credentials.auth_secret
|
||||
|
||||
if settings.filestore.s3.endpoint
|
||||
endpoint = URL.parse(settings.filestore.s3.endpoint)
|
||||
options.endpoint = settings.filestore.s3.endpoint
|
||||
options.sslEnabled = false
|
||||
options.sslEnabled = endpoint.protocol == 'https'
|
||||
|
||||
return options
|
||||
|
||||
|
|
Loading…
Reference in a new issue