1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00
VILLASnode/etc/examples/nodes/redis.conf

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
1.5 KiB
Text
Raw Permalink Normal View History

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
2021-06-16 10:36:19 -04:00
nodes = {
redis_node = {
type = "redis",
2021-06-16 10:36:19 -04: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
# 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
# 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
# One of:
# - 'channel' (publish/subscribe)
# - 'key' (set/get)
# - 'hash' (hmset/hgetall)
mode = "key",
2021-06-16 10:36:19 -04: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
# The polling rate when notify = false
rate = 1.0
2021-06-16 10:36:19 -04: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
# db = 0
2021-06-16 10:36:19 -04:00
# path = "/var/run/redis.sock"
2021-06-16 10:36:19 -04:00
# user = "guest",
# password = "guest"
# ssl = {
# enabled = true
# cacert = "/etc/ssl/certs/ca-certificates.crt",
# cacertdir = "/etc/ssl/certs"
# cert = "./my_cert.crt",
# key = "./my_key.key"
# }
}
2021-06-16 10:36:19 -04:00
}