Add Unraid plugin package
This commit is contained in:
+3
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user