influxdata / docs-v2

InfluxData Documentation that covers InfluxDB Cloud, InfluxDB OSS 2.x, InfluxDB OSS 1.x, InfluxDB Enterprise, Telegraf, Chronograf, Kapacitor, and Flux.
https://docs.influxdata.com
MIT License
73 stars 277 forks source link

Possible missing TLS information #4051

Open lwandzura opened 2 years ago

lwandzura commented 2 years ago

User feedback :

"The "run influxd with TLS flags" is missing information for installs using a systemd service. I think I need to edit /usr/lib/influxdb/scripts/influxd-systemd-start.sh but am not sure where or with what."

https://docs.influxdata.com/influxdb/v2.2/security/enable-tls/

andrew-aiken commented 2 weeks ago

Pretty old ticket, was setting this up myself

Update the start config (/usr/lib/influxdb/scripts/influxd-systemd-start.sh) to replace

/usr/bin/influxd &

With (update your cert paths)

/usr/bin/influxd --tls-cert "/etc/ssl/influxdb-selfsigned.crt" --tls-key "/etc/ssl/influxdb-selfsigned.key" &
andrew-aiken commented 2 weeks ago

Actually a better way would be to update the config (/etc/influxdb/config.toml) and add the following lines

tls-cert = "/etc/ssl/influxdb-selfsigned.crt"
tls-key = "/etc/ssl/influxdb-selfsigned.key"