From d55a2dedbac93a58f3305d67ad28631370a09621 Mon Sep 17 00:00:00 2001 From: CookieDasora Date: Tue, 30 Jan 2024 21:29:45 +0000 Subject: [PATCH] chore: added new env fields --- .env.example | 2 +- docker.env.example | 1 + src/main.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 8112614..3a05744 100644 --- a/.env.example +++ b/.env.example @@ -20,7 +20,7 @@ REDIS_PASSWORD= # Fastify SERVER_PORT= -CLIENT_URL= +SERVER_HOST= # Security JWT_ACCESS_SECRET= diff --git a/docker.env.example b/docker.env.example index b342f93..431e733 100644 --- a/docker.env.example +++ b/docker.env.example @@ -17,6 +17,7 @@ REDIS_PASSWORD= # Fastify SERVER_PORT= +SERVER_HOST= # Security JWT_ACCESS_SECRET= diff --git a/src/main.ts b/src/main.ts index a05bd95..13daf2e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -46,6 +46,6 @@ async function bootstrap() { await app.register(helmet); - await app.listen(3000, "0.0.0.0"); + await app.listen(process.env.SERVER_PORT, process.env.SERVER_HOST); } bootstrap();