Change influxdb default port

Currently, I have influxdb v2 running on Ubuntu v20.04, and is using the default port 8086, but I’m wishing to proxy my server by using Cloudflare for reasons of security.

However… Cloudflare do not allow proxying on port 8086, so I need to change influx’s port to something that meets the Cloudflare criteria.

How is this done? I’ve read several similar posts, none of which have really helped (probably due to my lack of influx experience).

Have you checked /etc/influxdb/influxdb.conf?

Restart influxdb service after changes.

1 Like

Yes, but no influxdb.conf file.

ubuntu@server-a:/etc/influxdb$ ls

In config.toml

bolt-path = "/var/lib/influxdb/influxd.bolt"
engine-path = "/var/lib/influxdb/engine"
tls-cert = "/etc/ssl/cert.pem"
tls-key = "/etc/ssl/privkey.pem"

Do I add http-bind-address = ":2083" to this config.toml file and restart?

EDIT - Yes, adding http-bind-address = ":2083" to the config.toml and restarting the server works great. All good now, thanks @Spueli99

1 Like