mirror of
https://github.com/Ride-The-Lightning/RTL
synced 2024-11-17 15:29:30 +00:00
e45d6d598a
- Package updates Updated docker NodeJS from 10 to 14 Updated Angular from 11 to 12 Updated Material from 11 to 12 Updated Angular cli from 11 to 12 Updated Karma from 5 to 6 Updated rxjs from 6 to 7 Updated ngrx from 10 to 12 Updated angularx-qrcode from 10 to 11 Updated @angular/flex-layout from 11 to 12 Updated angular-user-idle from 2.2.4 to 2.2.5 Updated typescript from 4.0.2 to 4.2.4 Updated zone.js from 0.10.2 to 0.11.4 Migrated from TSLint to ESLint Installed save-dev crypto-browserify & stream-browserify - Mask password with fixed length #689 - CSRF Token (#696) - Route lock default password (#700) - ECL Invoice amount mislabeled #694 - ECL & LND Fee report time zone offset bug fixes #692 & #693 - Loop remove max routing fee validation #690 - Child route refresh bug - Adding Password Blacklist (#704) - Fee rate in percentage #621 (#705) - ECL Adding BaseFee and FeeRate on Channels - LND Invoice and Payment pagination fix (#707) - Keysend missing QR code bug fix - Login page XS layout fix - Reports tables load time improved (#709) - Report initial table load bug fix
45 lines
1.3 KiB
JavaScript
45 lines
1.3 KiB
JavaScript
#!/usr/bin/env node
|
|
|
|
const app = require("./routes/app");
|
|
const common = require("./routes/common");
|
|
const http = require("http");
|
|
var connect = require("./routes/connect").setServerConfiguration(); //Do NOT Remove
|
|
|
|
const onError = error => {
|
|
if (error.syscall !== "listen") {
|
|
throw error;
|
|
}
|
|
switch (error.code) {
|
|
case "EACCES":
|
|
console.error("http://" + (common.host ? common.host : 'localhost') + ":" + common.port + " requires elevated privileges");
|
|
process.exit(1);
|
|
case "EADDRINUSE":
|
|
console.error("http://" + (common.host ? common.host : 'localhost') + ":" + common.port + " is already in use");
|
|
process.exit(1);
|
|
case "ECONNREFUSED":
|
|
console.error("Server is down/locked");
|
|
process.exit(1);
|
|
case "EBADCSRFTOKEN":
|
|
console.error("Form tempered");
|
|
process.exit(1);
|
|
default:
|
|
console.error("DEFUALT ERROR");
|
|
console.error(error.code);
|
|
throw error;
|
|
}
|
|
};
|
|
|
|
const onListening = () => {
|
|
console.log('Server is up and running, please open the UI at http://' + (common.host ? common.host : 'localhost') + ':' + common.port);
|
|
};
|
|
|
|
const server = http.createServer(app);
|
|
|
|
server.on("error", onError);
|
|
server.on("listening", onListening);
|
|
if (common.host) {
|
|
server.listen(common.port, common.host);
|
|
} else {
|
|
server.listen(common.port);
|
|
}
|