mirror of
https://github.com/Icinga/icingadb.git
synced 2026-05-28 04:35:54 -04:00
Doc: Add Redis password configuration settings
This adds the Redis password authentication to the documentation.
This commit is contained in:
parent
bca3ce7121
commit
78d3828ca9
3 changed files with 9 additions and 6 deletions
|
|
@ -14,6 +14,7 @@ Option | Description
|
|||
-------------------------|-----------------------------------------------
|
||||
host | **Optional.** Redis host. Defaults to `127.0.0.1`.
|
||||
port | **Optional.** Redis port. Defaults to `6380`.
|
||||
password | **Optional.** Redis password. Not set by default.
|
||||
pool\_size | **Optional.** Maximum number of socket connections. Defaults to `64`.
|
||||
|
||||
### MySQL Configuration <a id="configuration-general-mysql"></a>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
[redis]
|
||||
host="127.0.0.1"
|
||||
;port=6380
|
||||
;password="icingadb"
|
||||
|
||||
[mysql]
|
||||
host="127.0.0.1"
|
||||
|
|
|
|||
13
main.go
13
main.go
|
|
@ -5,6 +5,12 @@ package main
|
|||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"os"
|
||||
"os/signal"
|
||||
"regexp"
|
||||
"sync"
|
||||
"syscall"
|
||||
|
||||
"github.com/Icinga/icingadb/config"
|
||||
"github.com/Icinga/icingadb/configobject"
|
||||
"github.com/Icinga/icingadb/configobject/configsync"
|
||||
|
|
@ -64,11 +70,6 @@ import (
|
|||
"github.com/Icinga/icingadb/prometheus"
|
||||
"github.com/Icinga/icingadb/supervisor"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"os"
|
||||
"os/signal"
|
||||
"regexp"
|
||||
"sync"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
var gitVersion = regexp.MustCompile(`\A(.+)-\d+-g([A-Fa-f0-9]+)\z`)
|
||||
|
|
@ -104,7 +105,7 @@ func main() {
|
|||
mysqlInfo := config.GetMysqlInfo()
|
||||
metricsInfo := config.GetMetricsInfo()
|
||||
|
||||
redisConn := connection.NewRDBWrapper(redisInfo.Host+":"+redisInfo.Port, redisInfo.Password,redisInfo.PoolSize)
|
||||
redisConn := connection.NewRDBWrapper(redisInfo.Host+":"+redisInfo.Port, redisInfo.Password, redisInfo.PoolSize)
|
||||
|
||||
mysqlConn, err := connection.NewDBWrapper(
|
||||
mysqlInfo.User+":"+mysqlInfo.Password+"@tcp("+mysqlInfo.Host+":"+mysqlInfo.Port+")/"+mysqlInfo.Database,
|
||||
|
|
|
|||
Loading…
Reference in a new issue