x-worker-host を復活させる
This commit is contained in:
parent
b69075388c
commit
89f4e8f14d
|
@ -85,6 +85,12 @@ export class ServerService implements OnApplicationShutdown {
|
||||||
serve: false,
|
serve: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const hostname = os.hostname();
|
||||||
|
fastify.addHook('onRequest', (request, reply, done) => {
|
||||||
|
reply.header('x-worker-host', hostname);
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
|
||||||
fastify.register(this.apiServerService.createServer, { prefix: '/api' });
|
fastify.register(this.apiServerService.createServer, { prefix: '/api' });
|
||||||
fastify.register(this.openApiServerService.createServer);
|
fastify.register(this.openApiServerService.createServer);
|
||||||
fastify.register(this.fileServerService.createServer);
|
fastify.register(this.fileServerService.createServer);
|
||||||
|
|
Loading…
Reference in a new issue