-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for InfluxDB behind reverse proxy under subpath (https://example.com/influxdb/) #5096
Comments
@oddstr13 We are having trouble reproducing this issue. Can you provide some additional details about your setup? When we check the code, it should be using the full url you enter in the source connection before adding the |
This is the relevant part of my nginx server block; location /influxdb/ {
proxy_pass http://localhost:8086/;
} Seeing as the application didn't even connect, I ended up digging into the influxdb command-line interface and syntax to do what I needed. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity. Feel free to reopen if this issue is still important to you. Thank you for your contributions. |
influx cli also unsupports path in url: influxdata/influxdb#10294 |
The issue is still happening at chronograf 1.8.8, i need to configure the influxdb behind a proxy reverse with a sub path like this: "https://myhost/influxdb" and it seems that chronograf is changing the url when is querying the influxdb "ping" endpoint (with a sub path), the logs show the following:
And after that the following error appears: Can you support the sub path? or any work around to this? Thank you. |
Hi All |
Yep, same with InfluxDB |
I think I read somewhere that influxdb used to come with a frontend UI. But that got removed in a previous version. You can use Chronograf or Grafana instead and hook them up to Influxdb.
Kind Regards
James
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: DrPinguin98 <[email protected]>
Sent: Monday, February 22, 2021 3:52:52 PM
To: influxdata/chronograf <[email protected]>
Cc: James Forbes <[email protected]>; Comment <[email protected]>
Subject: Re: [influxdata/chronograf] Add support for InfluxDB behind reverse proxy under subpath (https://example.com/influxdb/) (#5096)
Hi All
What are the subpath configuration need in chronograf? When I load influxdb via browser I just see a white blank screen.
Yep, same with InfluxDB
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#5096 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOHFC5ITW2LMCKPQH66VYQ3TAJ4VJANCNFSM4GZ2CMQQ>.
|
@russorat I can confirm that this is still an issue in Chronograf v1.9.0 |
The culprit is likely to be lines such as this one; override path, not append to the configured path Line 91 in feaa183
A quick grep reveals the following locations where path is overridden, some of which are problematic;
I don't know Go, or whether the functions are passed a copy of the url, or a reference to the same object, so care may need to be taken not to end up with urls like |
Yes, a custom InfluxDB path is still not supported in 1.9.0 . The code still forgets the user-entered path and uses built-in API paths instead. |
Can somebody please make an effort to move forward with this feature? Im afraid i have no knowledge of Go. It a pitty not being able to access such a useful UI when running influx behind nginx and in a subpath. |
@sranka Thanks for looking into this! |
@oddstr13 you can already give it a try with a chronograf nightly build that can be downloaded from https://portal.influxdata.com/downloads/ |
Tested the docker image, seems to be working fine. |
Currently (Chronograf 1.7.8), attempting to add a InfluxDB connection with Connection URL of
https://example.com/influxdb/
results in a ping request tohttps://example.com/ping
(path part of url is replaced, not appended to).Desired behavior would be a request to
https://example.com/influxdb/ping
(path relative to supplied URL).The text was updated successfully, but these errors were encountered: