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_PASSWORD variable

Blue Mouse65e5ce573a26
diff --git a/.env.example b/.env.example
index 5fee68433..b71765550 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_PASSWORD=
CLICKHOUSE_HOST=http://localhost
CLICKHOUSE_USER=default
CLICKHOUSE_PORT=8123
diff --git a/dummy.sql b/dummy.sql
deleted file mode 100644
index e69de29bb..000000000
diff --git a/src/common/constants.ts b/src/common/constants.ts
index e245be1b2..45ff646e5 100644
--- a/src/common/constants.ts
+++ b/src/common/constants.ts
@@ -11,6 +11,7 @@ require('dotenv').config()
const redis = new Redis({
port: process.env.REDIS_PORT,
host: process.env.REDIS_HOST,
+ password: process.env.REDIS_PASSWORD,
})
redis.defineCommand('countKeysByPattern', {