Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

added redis user .env var

Blue Mouse393b0475e461
diff --git a/.env.example b/.env.example
index b71765550..c67f00841 100644
--- a/.env.example
+++ b/.env.example
@@ -8,6 +8,7 @@ MYSQL_ROOT_PASSWORD=password
MYSQL_DATABASE=analytics
REDIS_HOST=localhost
REDIS_PORT=6379
+REDIS_USER=default
REDIS_PASSWORD=
CLICKHOUSE_HOST=http://localhost
CLICKHOUSE_USER=default
diff --git a/src/common/constants.ts b/src/common/constants.ts
index 82bdd5506..1d8b47d7d 100644
--- a/src/common/constants.ts
+++ b/src/common/constants.ts
@@ -10,6 +10,7 @@ require('dotenv').config()
const redis = new Redis(_toNumber(process.env.REDIS_PORT), process.env.REDIS_HOST, {
password: process.env.REDIS_PASSWORD,
+ username: process.env.REDIS_USER,
})
redis.defineCommand('countKeysByPattern', {