diff --git a/README.md b/README.md index 53dcc9e..a0f5f24 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,29 @@ After installation, make sure to commit the `.ddev` directory to version control Redis is available inside Docker containers with `redis:6379`. +## What makes the optimized config different? + +The default config only uses the [redis.conf](./redis/redis.conf) file. + +The optimized config uses all `*.conf` files in the [redis](./redis) directory except `redis.conf`. + +It uses *hardened* settings ready for production, like enabling Redis credentials. + +You can read each config file to see the exact differences. + +## Redis Credentials + +By default, there is no authentication. + +If you have the optimized config enabled, the credentials are: + +| Field | Value | +|----------|---------| +| Username | `redis` | +| Password | `redis` | + +For more information about ACLs, see the [Redis documentation](https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/). + ### Swappable Redis backends Use the `ddev redis-backend` command to swap between Redis backends: @@ -53,19 +76,6 @@ Use the `ddev redis-backend` command to swap between Redis backends: > > Example: `ddev redis-backend redis optimize` -## Redis Credentials - -By default, no authentication is required. - -If you have the optimized config enabled (`ddev dotenv set .ddev/.env.redis --redis-optimized=true`), the credentials are: - -| Field | Value | -|----------|---------| -| Username | `redis` | -| Password | `redis` | - -For more information about ACLs, see the [Redis documentation](https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/). - ## Advanced Customization To apply an optimized configuration from `ddev/ddev-redis-7`: