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();