Description
Proposal:
remoteURL setting in the /api/v2/remotes endpoint should support full paths rather than just the host.
Current behavior:
I tried to deploy InfluxDB behind a proxy and forward requests for https://api.host.com/influxdb
to http://127.0.0.1:8086/api/v2
. I was hoping this could be achieved by setting the remoteURL parameter to https://api.host.com/influxdb
. But what happens is that InfluxDB seems to parse this URL and only use the host part https://api.host.com
. So to get around this I need to configure the proxy to accept https://api.host.com/api/v2
when my desired behaviour is that I can separate influxdb calls with the prefix /influxdb.
Desired behavior:
The remoteURL setting should accept and call full paths when replicating.
Alternatives considered:
Alternative is to reserve /api/v2 entirely for InfluxDB.
Use case:
To be able to separate InfluxDB api calls from other api calls by using a custom prefix.