mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-04 06:39:02 +02:00
Use SSL setting based on url protocol
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user