Skip to content

Avoid using root path on admin UI v2 #5352

@seblu

Description

@seblu

The is a follow up of #1236 for influxdb 0.9.6.1 because it's asked to open a new one.

I'm testing a simple reverse-proxy config with nginx and influxdb admin on an Arch Linux system.

Relevant nginx configuration is:

        location /influxdb {
            proxy_pass http://127.0.0.1:8083/;
            proxy_redirect off;
            proxy_ssl_session_reuse off;
            proxy_set_header   Host             $host;
            proxy_set_header   X-Real-IP        $remote_addr;
            proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
            proxy_max_temp_file_size 0;
            proxy_connect_timeout      240;
            proxy_send_timeout         240;
            proxy_read_timeout         240;
        }

Relevant influxdb config

[http]
  enabled = true
  bind-address = "localhost:8086"
  auth-enabled = true
  log-enabled = true
  write-tracing = false
  pprof-enabled = false
  https-enabled = false
  https-certificate = "/etc/ssl/influxdb.pem"

[admin]
  enabled = true
  bind-address = "localhost:8083"
  https-enabled = false

The web admin interface is almost displayed correctly except the database dropdown menu.

But the admin interface use http://localhost:8086/query?q=SHOW+DATABASES&db= to execute query instead of $relative/query?....

We seems to be close to have this to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions