mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-30 23:09:19 +09:00
x-worker-host を復活させる
This commit is contained in:
parent
b69075388c
commit
89f4e8f14d
@ -85,6 +85,12 @@ export class ServerService implements OnApplicationShutdown {
|
||||
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.openApiServerService.createServer);
|
||||
fastify.register(this.fileServerService.createServer);
|
||||
|
Loading…
Reference in New Issue
Block a user