1
0
Fork 0

Use TLS for InfluxDB

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2021-02-02 15:18:49 +01:00
commit 075a281a08
No known key found for this signature in database
GPG key ID: FF42D23B580C89F7
6 changed files with 24 additions and 8 deletions

View file

@ -13,8 +13,10 @@ This stack is also known as the **TIG** stack.
## Quickstart
The easiest way to test is to use [Docker](https://www.docker.com/). Ensure you have `docker` and
`docker-compose` binary installed.
**Testing purpose only**.
This guide uses [Docker](https://www.docker.com/). Ensure you have `docker`, `docker-compose` and `openssl` binaries
installed.
Write your miner address, grafana and influxdb credentials:
@ -22,17 +24,20 @@ Write your miner address, grafana and influxdb credentials:
vi docker/environment
```
Generate a self-signed certificate:
```
openssl req -x509 -nodes -newkey rsa:2048 -keyout docker/ssl/influxdb.key -out docker/ssl/influxdb.crt -days 365
```
Press enter to every question.
Then start containers:
```
docker-compose up -d
```
## Going further
You should secure [InfluxDB](https://docs.influxdata.com/influxdb/v1.7/administration/security/) by using encryption for
communication. The stack doesn't require Docker.
## Disclaimer
Telegraf is able to make API call on thrid-party services. Please read terms of service before going further. The