start a web server

This commit is contained in:
2025-01-10 01:52:42 -05:00
parent b8baa5cf4f
commit 0abf129fcc
10 changed files with 882 additions and 10 deletions

View File

@@ -5,3 +5,5 @@ import Web from './Web.ts';
const config = JSON.parse(await fs.promises.readFile(process.env.config || path.join('config', 'config.json'), 'utf-8'));
const web = new Web(config);
process.on('SIGTERM', web.close);