Some checks failed
Deploy / deploy (push) Has been cancelled
Full-stack web application for Telegram management - Frontend: Vue 3 + Vben Admin - Backend: NestJS - Features: User management, group broadcast, statistics 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
46 lines
655 B
Plaintext
46 lines
655 B
Plaintext
# Redis配置文件
|
|
|
|
# 网络配置
|
|
bind 0.0.0.0
|
|
port 6379
|
|
protected-mode no
|
|
|
|
# 内存配置
|
|
maxmemory 256mb
|
|
maxmemory-policy allkeys-lru
|
|
|
|
# 持久化配置
|
|
save 900 1
|
|
save 300 10
|
|
save 60 10000
|
|
|
|
# AOF持久化
|
|
appendonly yes
|
|
appendfsync everysec
|
|
auto-aof-rewrite-percentage 100
|
|
auto-aof-rewrite-min-size 64mb
|
|
|
|
# 日志配置
|
|
loglevel notice
|
|
logfile /data/redis.log
|
|
|
|
# 性能优化
|
|
tcp-keepalive 300
|
|
timeout 0
|
|
tcp-backlog 511
|
|
|
|
# 安全配置
|
|
# requirepass your-redis-password
|
|
|
|
# 客户端连接
|
|
maxclients 1000
|
|
|
|
# 慢查询日志
|
|
slowlog-log-slower-than 10000
|
|
slowlog-max-len 128
|
|
|
|
# 键空间通知
|
|
notify-keyspace-events Ex
|
|
|
|
# 数据库数量
|
|
databases 16 |