Anvil Connect requires access to a Redis database and uses the default host and port for a local instance. To use a remote Redis server, provide host, port, and password parameters under the "redis" object in your config.
{
// ...
"redis": {
"host": "HOST",
"port": "PORT",
"password": "PASSWORD"
}
}
Configuration options for Redis are identical to that of the supported options for ioredis.
You can also provide a db
setting (integer) if you want to use a different
Redis database. By default, Redis is configured to support 16 databases
(0 - 15). This can be configured in the redis.conf
file for your Redis
installation.
{
// ...
"redis": {
"db": 3
}
}