A safe redis.conf in a few clicks
A default Redis listens broadly and persists nothing useful, which is fine for a quick test and dangerous in production. This builder generates a redis.conf with the settings that matter: a locked-down bind and password, a memory cap with the right eviction policy, and a persistence strategy that matches your use case.
How it works
The config is grouped into clear sections. Network sets bind, port, protected-mode, timeout, and tcp-keepalive. Security emits requirepass when you supply a password, or a commented reminder if you do not. Memory management writes your maxmemory limit and maxmemory-policy. Persistence changes shape with your choice: RDB writes the classic save snapshot rules and a dump.rdb; AOF turns on appendonly with your chosen appendfsync durability; “both” combines them; and “none” disables saving entirely with save "" for a pure cache. A logging block rounds it out. Everything is generated in your browser.
Tips and example
- For a cache, set a real
maxmemory(say256mb) andallkeys-lru— without a limit Redis will grow until the host runs out of RAM. - For a durable store, use
appendonly yeswithappendfsync everysecand keepnoevictionso writes fail loudly rather than silently dropping keys. - Always set
requirepassto a long random string and never paste a real production password into a shared screen. - The
dirdefaults to/var/lib/redis; make sure the redis user owns that path before starting the server.