Repository navigation
feat(file-downloads): add possibility to offload to EOS - #2193
Conversation
3d84f42 to
2075694
Compare
| CDS_EOS_OFFLOAD_REDIRECT_BASE_PATH = "/eos_storage" | ||
| """Internal nginx location prefix used for the ``X-Accel-Redirect``.""" | ||
|
|
||
| CDS_EOS_OFFLOAD_ENDPOINTS = ["invenio_files_rest.object_api"] |
There was a problem hiding this comment.
are there any other endpoints that might be used for downloads?
silly question because I didn't investigate in depth - what about streaming connections, are they also causing issues?
There was a problem hiding this comment.
streaming connections on Videos are handled by the wowza streaming server so they are completely independent. For now, the direct file downloads are the ones causing the problem.
| CDS_EOS_OFFLOAD_AUTH_X509 = True | ||
| """Authenticate to the EOS gateway with X.509 (otherwise Kerberos).""" | ||
|
|
||
| CDS_EOS_OFFLOAD_X509_CERT_PATH = "/etc/certificates/cert.pem" |
There was a problem hiding this comment.
I would leave this empty here
| # served by a separate streaming server and is unaffected. | ||
| # | ||
| # The single on/off toggle is ``CDS_EOS_OFFLOAD_ENABLED``. | ||
| FILES_REST_XSENDFILE_ENABLED = False |
There was a problem hiding this comment.
is this variable True in files rest by default? if not I would maybe not expose it here since it opens the door for modifications, unless you leave it here because you want to state clearly that it should not be changed.
| CDS_EOS_OFFLOAD_ENABLED = False | ||
| """Enable offloading of ``/api/files`` downloads to EOS (the single toggle).""" | ||
|
|
||
| CDS_EOS_OFFLOAD_HTTPHOST = "https://eosmedia.cern.ch:8444" |
There was a problem hiding this comment.
I would leave this empty here
No description provided.