mirror of
https://github.com/hknsh/project-knedita.git
synced 2024-11-28 09:31:16 +00:00
chore: added new env fields
This commit is contained in:
parent
34944d9000
commit
d55a2dedba
3 changed files with 3 additions and 2 deletions
|
@ -20,7 +20,7 @@ REDIS_PASSWORD=<same_as_defined_in_docker_compose_file>
|
||||||
|
|
||||||
# Fastify
|
# Fastify
|
||||||
SERVER_PORT=<placeholder>
|
SERVER_PORT=<placeholder>
|
||||||
CLIENT_URL=<placeholder>
|
SERVER_HOST=<placeholder>
|
||||||
|
|
||||||
# Security
|
# Security
|
||||||
JWT_ACCESS_SECRET=<placeholder>
|
JWT_ACCESS_SECRET=<placeholder>
|
||||||
|
|
|
@ -17,6 +17,7 @@ REDIS_PASSWORD=<same_as_defined_in_docker_compose_file>
|
||||||
|
|
||||||
# Fastify
|
# Fastify
|
||||||
SERVER_PORT=<placeholder>
|
SERVER_PORT=<placeholder>
|
||||||
|
SERVER_HOST=<placeholder>
|
||||||
|
|
||||||
# Security
|
# Security
|
||||||
JWT_ACCESS_SECRET=<placeholder>
|
JWT_ACCESS_SECRET=<placeholder>
|
||||||
|
|
|
@ -46,6 +46,6 @@ async function bootstrap() {
|
||||||
|
|
||||||
await app.register(helmet);
|
await app.register(helmet);
|
||||||
|
|
||||||
await app.listen(3000, "0.0.0.0");
|
await app.listen(process.env.SERVER_PORT, process.env.SERVER_HOST);
|
||||||
}
|
}
|
||||||
bootstrap();
|
bootstrap();
|
||||||
|
|
Loading…
Reference in a new issue