add configs and docs

This commit is contained in:
Morre 2020-11-20 14:14:59 +01:00
parent 5925d5b26d
commit 52f4f19c0a
No known key found for this signature in database
GPG key ID: 5D9B9B1B8F424BBC
5 changed files with 1498 additions and 3 deletions

16
README.md Normal file
View file

@ -0,0 +1,16 @@
# redis
Installs redis and configures instances.
## Configuration
For each instance, you can set:
* `name`: name of the instance. Gets used to name the config file, the socket and more.
* `bind`: bind addresses. Defaults to `127.0.0.1 ::1`. TCP listening is disabled when `socket_perm` is `true`
* `port`: port to listen on. TCP listening is disabled when `socket_perm` is `true`
* `socket_enabled`: enables listening on a socket. Not set by default
* `socket_perm`: permissions on the socket. Defaults to `700`
* `maxmemory`: maximum memory for the instance. Not set by default
* `maxmemory_policy`: maxmemory-policy. Defaults to `noeviction`