2021-06-16 10:36:19 -04:00
|
|
|
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2023-08-31 11:25:01 +02:00
|
|
|
|
2021-06-16 10:36:19 -04:00
|
|
|
nodes = {
|
2024-02-29 21:36:38 +01:00
|
|
|
redis_node = {
|
|
|
|
type = "redis",
|
2021-06-16 10:36:19 -04:00
|
|
|
|
2024-04-09 14:17:35 +02:00
|
|
|
# Only valid for mode = 'channel' and 'key'
|
|
|
|
# With mode = 'hash' we will use a simple human readable format
|
|
|
|
format = "json",
|
2021-06-16 10:36:19 -04:00
|
|
|
|
2024-04-09 14:17:35 +02:00
|
|
|
# The Redis key to be used for mode = 'key' or 'hash' (default is the node name)
|
|
|
|
key = "my_key"
|
2021-06-16 10:36:19 -04:00
|
|
|
|
2024-04-09 14:17:35 +02:00
|
|
|
# The Redis channel tp be used for mode = 'channel' (default is the node name)
|
|
|
|
channel = "my_channel"
|
2021-06-16 10:36:19 -04:00
|
|
|
|
2024-04-09 14:17:35 +02:00
|
|
|
# One of:
|
|
|
|
# - 'channel' (publish/subscribe)
|
|
|
|
# - 'key' (set/get)
|
|
|
|
# - 'hash' (hmset/hgetall)
|
|
|
|
mode = "key",
|
2021-06-16 10:36:19 -04:00
|
|
|
|
2024-04-09 14:17:35 +02:00
|
|
|
# Whether or not to use Redis keyspace event notifications to get notified about updates
|
|
|
|
notify = false
|
2021-06-16 10:36:19 -04:00
|
|
|
|
2024-04-09 14:17:35 +02:00
|
|
|
# The polling rate when notify = false
|
|
|
|
rate = 1.0
|
2021-06-16 10:36:19 -04:00
|
|
|
|
2024-04-09 14:17:35 +02:00
|
|
|
# The Redis connection URI
|
|
|
|
uri = "tcp://localhost:6379/0",
|
|
|
|
|
|
|
|
# Alternatively the connection options can be specified independently
|
|
|
|
# host = "localhost"
|
|
|
|
|
|
|
|
# Note: options here will overwrite the respective part of the URI if both are given
|
|
|
|
# port = 6379
|
2024-02-29 21:36:38 +01:00
|
|
|
# db = 0
|
2021-06-16 10:36:19 -04:00
|
|
|
|
2024-02-29 21:36:38 +01:00
|
|
|
# path = "/var/run/redis.sock"
|
2021-06-16 10:36:19 -04:00
|
|
|
|
2024-02-29 21:36:38 +01:00
|
|
|
# user = "guest",
|
|
|
|
# password = "guest"
|
|
|
|
|
|
|
|
# ssl = {
|
2024-04-09 14:17:35 +02:00
|
|
|
# enabled = true
|
|
|
|
# cacert = "/etc/ssl/certs/ca-certificates.crt",
|
|
|
|
# cacertdir = "/etc/ssl/certs"
|
|
|
|
# cert = "./my_cert.crt",
|
|
|
|
# key = "./my_key.key"
|
2024-02-29 21:36:38 +01:00
|
|
|
# }
|
|
|
|
}
|
2021-06-16 10:36:19 -04:00
|
|
|
}
|