✨ Features: - Complete LEMP stack automation - WordPress with WP-CLI - Redis Object Cache (50% performance boost) - Multi-OS support - SSL/Let's Encrypt integration - Security hardening - Enterprise features - Docker testing environment - GitHub Actions CI/CD - Comprehensive documentation 🧪 Fully tested and production-ready Copyright (c) 2025 Sebastian Palencsár
59 lines
1.1 KiB
Django/Jinja
59 lines
1.1 KiB
Django/Jinja
# Redis configuration file for WordPress
|
|
# Generated by Ansible
|
|
|
|
# Network
|
|
bind 127.0.0.1
|
|
port 6379
|
|
tcp-backlog 511
|
|
timeout 0
|
|
tcp-keepalive 300
|
|
|
|
# General
|
|
daemonize yes
|
|
supervised no
|
|
pidfile /var/run/redis/redis-server.pid
|
|
loglevel notice
|
|
logfile /var/log/redis/redis-server.log
|
|
databases 16
|
|
|
|
# Memory Management
|
|
maxmemory {{ redis_maxmemory | default('128mb') }}
|
|
maxmemory-policy allkeys-lru
|
|
maxmemory-samples 5
|
|
|
|
# Persistence
|
|
save 900 1
|
|
save 300 10
|
|
save 60 10000
|
|
stop-writes-on-bgsave-error yes
|
|
rdbcompression yes
|
|
rdbchecksum yes
|
|
dbfilename dump.rdb
|
|
dir /var/lib/redis
|
|
|
|
# Security
|
|
requirepass {{ redis_password | default('') }}
|
|
|
|
# Slow Log
|
|
slowlog-log-slower-than 10000
|
|
slowlog-max-len 128
|
|
|
|
# Advanced config
|
|
hash-max-ziplist-entries 512
|
|
hash-max-ziplist-value 64
|
|
list-max-ziplist-size -2
|
|
list-compress-depth 0
|
|
set-max-intset-entries 512
|
|
zset-max-ziplist-entries 128
|
|
zset-max-ziplist-value 64
|
|
hll-sparse-max-bytes 3000
|
|
|
|
# Client output buffer limits
|
|
client-output-buffer-limit normal 0 0 0
|
|
client-output-buffer-limit replica 256mb 64mb 60
|
|
client-output-buffer-limit pubsub 32mb 8mb 60
|
|
|
|
# WordPress optimizations
|
|
hz 10
|
|
dynamic-hz yes
|