56 lines
917 B
Plaintext
56 lines
917 B
Plaintext
# Redis configuration for Discord Voice Translator
|
|
# Optimized for message queuing and caching
|
|
|
|
# Network
|
|
bind 0.0.0.0
|
|
port 6379
|
|
protected-mode no
|
|
|
|
# General
|
|
daemonize no
|
|
pidfile /var/run/redis_6379.pid
|
|
loglevel notice
|
|
logfile ""
|
|
|
|
# Persistence
|
|
save 900 1
|
|
save 300 10
|
|
save 60 10000
|
|
stop-writes-on-bgsave-error yes
|
|
rdbcompression yes
|
|
rdbchecksum yes
|
|
dbfilename dump.rdb
|
|
dir /data
|
|
|
|
# Append only file
|
|
appendonly yes
|
|
appendfilename "appendonly.aof"
|
|
appendfsync everysec
|
|
no-appendfsync-on-rewrite no
|
|
auto-aof-rewrite-percentage 100
|
|
auto-aof-rewrite-min-size 64mb
|
|
aof-load-truncated yes
|
|
aof-use-rdb-preamble yes
|
|
|
|
# Memory management
|
|
maxmemory 256mb
|
|
maxmemory-policy allkeys-lru
|
|
|
|
# Clients
|
|
maxclients 10000
|
|
|
|
# Security
|
|
# requirepass your_redis_password_here
|
|
|
|
# Slow log
|
|
slowlog-log-slower-than 10000
|
|
slowlog-max-len 128
|
|
|
|
# Pub/Sub
|
|
notify-keyspace-events Ex
|
|
|
|
# For message queues
|
|
timeout 0
|
|
tcp-keepalive 300
|
|
tcp-backlog 511
|