# Secure Redis Configuration for Homelab

# Network security
bind 0.0.0.0
protected-mode yes
port 6379

# Authentication
requirepass your-redis-password

# Security settings
rename-command FLUSHDB ""
rename-command FLUSHALL ""
rename-command KEYS ""
rename-command CONFIG "CONFIG_b835c3f8a5d2e7f1"
rename-command SHUTDOWN "SHUTDOWN_b835c3f8a5d2e7f1"
rename-command DEBUG ""

# Memory management
maxmemory 256mb
maxmemory-policy allkeys-lru

# Persistence
save 900 1
save 300 10
save 60 10000

# Logging
loglevel notice
logfile ""

# Client limits
timeout 300
tcp-keepalive 60
tcp-backlog 511

# Performance
databases 16
always-show-logo no

# Security
supervised no
pidfile /var/run/redis/redis-server.pid
dir /data
