We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f5e3cf commit 39525e6Copy full SHA for 39525e6
1 file changed
src/index.ts
@@ -2,12 +2,7 @@ import { Elysia } from "elysia";
2
import Redis from "ioredis";
3
import { check } from "./check";
4
5
-const redis = new Redis({
6
- host: process.env.REDIS_HOST || "localhost",
7
- port: Number(process.env.REDIS_PORT) || 6379,
8
- password: process.env.REDIS_PASSWORD,
9
- db: Number(process.env.REDIS_DB) || 0,
10
-});
+const redis = new Redis(process.env.REDIS_URL || "redis://localhost:6379");
11
12
const app = new Elysia()
13
.get("/check/:ip", async ({ params: { ip } }) => {
0 commit comments