diff --git a/.env.example b/.env.example index 1b4307e..84cdf3a 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,5 @@ PORT=8080 +HOST=0.0.0.0 REDIS_URI=redis://localhost:6379 DISCORD_CLIENT_ID= diff --git a/src/index.ts b/src/index.ts index a1d1ae6..c8521c0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -189,4 +189,4 @@ fastify.get("/callback", async (request, response) => { fastify.get("/", () => ({ shiggy: true })); -await fastify.listen({ port: parseInt(process.env.PORT!) }); +await fastify.listen({ host: process.env.HOST!, port: parseInt(process.env.PORT!) });