mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-11-16 14:29:09 +01:00
Add nix-infra-machine
This commit is contained in:
1 parent
28ea6f4a47
commit
1034986fa1
79 files changed
+14465
No files matched your search
@@ -0,0 +1,20 @@
|
||||
{ config, pkgs, lib, ... }: {
|
||||
# Enable Redis using infrastructure module with multiple servers
|
||||
config.infrastructure.redis = {
|
||||
enable = true;
|
||||
servers = {
|
||||
# Default server (creates redis.service)
|
||||
"" = {
|
||||
bindToIp = "127.0.0.1";
|
||||
bindToPort = 6379;
|
||||
};
|
||||
# Named server for testing (creates redis-cache.service)
|
||||
cache = {
|
||||
bindToIp = "127.0.0.1";
|
||||
bindToPort = 6380;
|
||||
maxMemory = "64mb";
|
||||
maxMemoryPolicy = "allkeys-lru";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user