Add Unraid plugin package

This commit is contained in:
Mikei386
2026-06-22 22:15:33 +02:00
parent 37ddea08f4
commit 92434a945d
8 changed files with 268 additions and 3 deletions
+3 -2
View File
@@ -226,9 +226,10 @@ function statusError(status, message) {
if (import.meta.url === `file://${process.argv[1]}`) {
const port = Number(process.env.PORT || 8088);
const host = process.env.U_NAV_HOST || process.env.HOST || '127.0.0.1';
createApp({ env: process.env }).then((app) => {
http.createServer(app).listen(port, '127.0.0.1', () => {
console.log(`U-Navigator listening on http://127.0.0.1:${port}`);
http.createServer(app).listen(port, host, () => {
console.log(`U-Navigator listening on http://${host}:${port}`);
});
}).catch((error) => {
console.error(error.message);