InfluxDB 2 Config file + SSL

I’m new to both InfluxDB and newish to Linux.

I’m trying to setup influxdb + telegraf (then Grafana). Now i’ve got the basics install, influxdb and telegraf and all is running and telegraf is sending data on the local machine.

Now i want to get influx+telegraf into SSL HTTPS. but having issues getting a config file setup and running.

If i manually run

influxd --tls-cert="/etc/letsencrypt/live//fullchain.pem" --tls-key="/etc/letsencrypt/live//privkey.pem"

that runs and i can get onto the web ui via https://:8086

I installed on CentOS8 via the RPM package so run via systemctl. How do i create a config file and add the SSL certificates to get it running under https?
I’ve tried creating a .yml file and setting the config file path

export INFLUXD_CONFIG_PATH=/etc/influxdb/influxdb.yml

But that doesn’t seem to do anything.
Also tried

influx config create --active -n config-name -u http://localhost:8086 -t mySuP3rS3cr3tT0keN -o example-org

but not sure where to edit and add the SSL stuff.

Hello @hobbit666,
Have you taken a look at:

Yeah I have and it works when I run that command.

But I’ve installed via RPM so it’s running as a service. So how do I get the SSL running with the service?

I’m think from the docs I need a configuration file but can’t seem to work out how.

You should already have a configuration file. But which config file are you referring to? What step are you stuck on?

Hi, @hobbit666 same problem here…
did you found a solution for your problem.

No kind of gave up for now and stuck to v1.
Might try it again soon