Fork of github.com/did-method-plc/did-method-plc
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

up server keepalive to be in sync with common load balancers (#34)

authored by

devin ivy and committed by
GitHub
c73c568b fcddbc01

+2 -1
+2 -1
packages/server/service/index.js
··· 22 22 }) 23 23 const port = parseInt(process.env.PORT) 24 24 const plc = PlcServer.create({ db, port, version }) 25 - await plc.start() 25 + const server = await plc.start() 26 + server.keepAliveTimeout = 90000 26 27 // Graceful shutdown (see also https://aws.amazon.com/blogs/containers/graceful-shutdowns-with-ecs/) 27 28 process.on('SIGTERM', async () => { 28 29 await plc.destroy()