Skip to content

Commit 39525e6

Browse files
committed
feat: Dockerize and Elysiaify
1 parent 6f5e3cf commit 39525e6

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/index.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@ import { Elysia } from "elysia";
22
import Redis from "ioredis";
33
import { check } from "./check";
44

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-
});
5+
const redis = new Redis(process.env.REDIS_URL || "redis://localhost:6379");
116

127
const app = new Elysia()
138
.get("/check/:ip", async ({ params: { ip } }) => {

0 commit comments

Comments
 (0)