Cannot properly load InfluxDB page if configured under different path

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

            - 9999:9999

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 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 instead of


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?


Did you reach a solution for this?