mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-10-23 07:42:05 +00:00
Blame my ADHD brain Sorry - Now we have the server working properly in automation using BullMQ and Redis - It also presents an API endpoint that is used to accept connections for websockets by agents (WS or WSS) - Updated the docker-compose.yml and its documentation
36 lines
677 B
Plaintext
36 lines
677 B
Plaintext
# Redis Configuration for PatchMon Production
|
|
# Security settings
|
|
requirepass ${REDIS_PASSWORD}
|
|
rename-command FLUSHDB ""
|
|
rename-command FLUSHALL ""
|
|
rename-command DEBUG ""
|
|
rename-command CONFIG "CONFIG_${REDIS_PASSWORD}"
|
|
|
|
# Memory management
|
|
maxmemory 256mb
|
|
maxmemory-policy allkeys-lru
|
|
|
|
# Persistence settings
|
|
save 900 1
|
|
save 300 10
|
|
save 60 10000
|
|
|
|
# Logging
|
|
loglevel notice
|
|
logfile ""
|
|
|
|
# Network security
|
|
bind 127.0.0.1
|
|
protected-mode yes
|
|
|
|
# Performance tuning
|
|
tcp-keepalive 300
|
|
timeout 0
|
|
|
|
# Disable dangerous commands
|
|
rename-command SHUTDOWN "SHUTDOWN_${REDIS_PASSWORD}"
|
|
rename-command KEYS ""
|
|
rename-command MONITOR ""
|
|
rename-command SLAVEOF ""
|
|
rename-command REPLICAOF ""
|