Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Endpoint for the data provider (9164) #44

Closed
PVince81 opened this issue Jun 3, 2020 · 5 comments
Closed

Endpoint for the data provider (9164) #44

PVince81 opened this issue Jun 3, 2020 · 5 comments
Assignees

Comments

@PVince81
Copy link
Contributor

PVince81 commented Jun 3, 2020

So far, when uploading with TUS, the clients receive a Location header that usually points directly to the port 9164

As far as I understand in deployment scenarios where the proxy is used, we'd want to have that one also routed through the proxy.

We could provide an endpoint "/data" and forward it to 9164.

@butonic does that make sense ?

@PVince81
Copy link
Contributor Author

PVince81 commented Jun 3, 2020

the default config will also need to be adjusted to make sure the Location header points at the proxy

@PVince81 PVince81 changed the title Endpoint for the data provider (9160) Endpoint for the data provider (9160 / 9164) Jun 4, 2020
@PVince81 PVince81 changed the title Endpoint for the data provider (9160 / 9164) Endpoint for the data provider (9164) Jun 4, 2020
@PVince81
Copy link
Contributor Author

PVince81 commented Jun 4, 2020

it seems that with EOS the port would be 9160 but for OC data it's 9164, so it might need multiple routes ?

@PVince81
Copy link
Contributor Author

PVince81 commented Jun 4, 2020

as discussed with @felixboehm, we must provide this to have everything accessible behind a single port

@butonic
Copy link
Member

butonic commented Jun 4, 2020

reva has a datagateway service which we are starting with ocis-reva as part of the frontend cmd. Three things need to be configured to have everything routed through a single entrypoint:

  1. the storage providers need to be configured to never expose a dedicated storage driver. this can be done by setting REVA_STORAGE_(EOS|HOME|OC)_EXPOSE_DATA_SERVER to false. This will make the reva gateway use the datagateway instead of the dataproviders directly.
  2. the reva gateway needs to use the proxy as the frontend url. try setting REVA_FRONTEND_URL to the outside address (host and port) ...
  1. ocis-proxy should proxy /data to the ocis frontend

@PVince81
Copy link
Contributor Author

PVince81 commented Jun 8, 2020

as I understand this will be:

-> proxy (port?) -> datagateway (port?) -> OC storage 9164
-> proxy (port?) -> datagateway (port?) -> EOS storage 9160

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants