17 lines
355 B
Nix
17 lines
355 B
Nix
|
|
{config, ...}: {
|
||
|
|
services.redis.servers.honcho = {
|
||
|
|
enable = true;
|
||
|
|
port = 6380; # Separate from default Redis (6379) to avoid conflicts
|
||
|
|
bind = "127.0.0.1";
|
||
|
|
save = [
|
||
|
|
[900 1]
|
||
|
|
[300 10]
|
||
|
|
[60 10000]
|
||
|
|
];
|
||
|
|
};
|
||
|
|
|
||
|
|
networking.firewall.extraCommands = ''
|
||
|
|
iptables -A INPUT -p tcp -s 127.0.0.1 --dport 6380 -j ACCEPT
|
||
|
|
'';
|
||
|
|
}
|