env: add WEB_SERVER
This commit is contained in:
parent
59030c7601
commit
3616e36ed4
@ -22,6 +22,7 @@ const envSchema = z.object({
|
||||
.string()
|
||||
.transform((val) => Number.parseInt(val, 10))
|
||||
.default('6379'),
|
||||
WEB_SERVER: z.string(),
|
||||
});
|
||||
|
||||
export default envSchema;
|
||||
|
||||
@ -35,7 +35,7 @@ async function bootstrap() {
|
||||
|
||||
await app.register(proxy, {
|
||||
http2: false,
|
||||
upstream: 'http://localhost:3000',
|
||||
upstream: `http://${env.WEB_SERVER}`,
|
||||
});
|
||||
|
||||
app.useGlobalPipes(new ValidationPipe({ stopAtFirstError: true }));
|
||||
|
||||
@ -25,6 +25,7 @@ services:
|
||||
- API_CACHE_TTL=${API_CACHE_TTL}
|
||||
- REDIS_HOST=redis
|
||||
- MONGO_HOST=mongo
|
||||
- WEB_SERVER=auth_web:3000
|
||||
restart: always
|
||||
networks:
|
||||
- auth_network
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user