Cannot properly load InfluxDB page if configured under different path

I’m using docker-compose to run influxdb 2.0.

    influxdb:
        image: quay.io/influxdb/influxdb:2.0.0-alpha
        ports:
            - 9999:9999
    nginx:
        ...

Together with an nginx container, (somewhat) configured as follows:

http {
    server {
        listen 443 ssl;
        location /influxdb/ {
            proxy_pass http://influxdb:9999/;
        }
    }
}

When I’m doing a request to my-domain.com/influxdb I’m redirected to the correct page (and I see a request coming in for influxdb in the logs), but it does not properly load the javascript & css files, as it tries to retrieve that from my-domain.com instead of my-domain.com/influxdb.

Screenshot_2019-02-25_14-48-13

I tried setting influx up with the following command:
influx setup --host=http://localhost:9999/influxdb/, but that doesn’t change anything in the requests.

Maybe I’m missing something, but I thought I’d let you know before I try setting this thing up slightly different. (using http://my-domain:9999 instead)

Hi @confususs I just ran across the same problem.
Did you manage to solve this? If so how?

Hi,

Did you reach a solution for this?

Thanks