Remove config directory
This commit is contained in:
1 parent
e53717cb6b
commit
8b1f046a3f
4 files changed
-62
No files matched your search
-12
@@ -1,17 +1,5 @@
|
|||||||
*~
|
*~
|
||||||
node_modules
|
node_modules
|
||||||
dist
|
dist
|
||||||
config/config.json
|
|
||||||
config/config-ui.json
|
|
||||||
config/cwmp.key
|
|
||||||
config/cwmp.crt
|
|
||||||
config/cwmp.ca-bundle
|
|
||||||
config/nbi.key
|
|
||||||
config/nbi.crt
|
|
||||||
config/nbi.ca-bundle
|
|
||||||
config/fs.key
|
|
||||||
config/fs.crt
|
|
||||||
config/fs.ca-bundle
|
|
||||||
config/ext
|
|
||||||
bin/.*.ts
|
bin/.*.ts
|
||||||
tools/.*.ts
|
tools/.*.ts
|
||||||
@@ -136,7 +136,6 @@ async function init(): Promise<void> {
|
|||||||
// Create output directory layout
|
// Create output directory layout
|
||||||
fs.mkdirSync(OUTPUT_DIR);
|
fs.mkdirSync(OUTPUT_DIR);
|
||||||
fs.mkdirSync(OUTPUT_DIR + "/bin");
|
fs.mkdirSync(OUTPUT_DIR + "/bin");
|
||||||
fs.mkdirSync(OUTPUT_DIR + "/config");
|
|
||||||
fs.mkdirSync(OUTPUT_DIR + "/public");
|
fs.mkdirSync(OUTPUT_DIR + "/public");
|
||||||
fs.mkdirSync(OUTPUT_DIR + "/tools");
|
fs.mkdirSync(OUTPUT_DIR + "/tools");
|
||||||
|
|
||||||
@@ -172,8 +171,6 @@ async function copyStatic(): Promise<void> {
|
|||||||
"LICENSE",
|
"LICENSE",
|
||||||
"README.md",
|
"README.md",
|
||||||
"CHANGELOG.md",
|
"CHANGELOG.md",
|
||||||
"config/config-sample.json",
|
|
||||||
"config/ext-sample.js",
|
|
||||||
"public/logo.svg",
|
"public/logo.svg",
|
||||||
"public/favicon.png"
|
"public/favicon.png"
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
"MONGODB_CONNECTION_URL" : "mongodb://127.0.0.1/genieacs",
|
|
||||||
"CWMP_INTERFACE" : "0.0.0.0",
|
|
||||||
"CWMP_PORT" : 7547,
|
|
||||||
"NBI_INTERFACE" : "0.0.0.0",
|
|
||||||
"NBI_PORT" : 7557,
|
|
||||||
"FS_INTERFACE" : "0.0.0.0",
|
|
||||||
"FS_PORT" : 7567,
|
|
||||||
"FS_HOSTNAME" : "",
|
|
||||||
"UI_INTERFACE" : "0.0.0.0",
|
|
||||||
"UI_PORT" : 3000,
|
|
||||||
"UI_JWT_SECRET": ""
|
|
||||||
}
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
// This is an exmaple GenieACS extension to get the current latitude/longitude
|
|
||||||
// of the International Space Station. Why, you ask? Because why not.
|
|
||||||
// To install, copy this file to config/ext/iss.js.
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
|
|
||||||
const http = require("http");
|
|
||||||
|
|
||||||
let cache = null;
|
|
||||||
let cacheExpire = 0;
|
|
||||||
|
|
||||||
function latlong(args, callback) {
|
|
||||||
if (Date.now() < cacheExpire)
|
|
||||||
return callback(null, cache);
|
|
||||||
|
|
||||||
http.get("http://api.open-notify.org/iss-now.json", (res) => {
|
|
||||||
if (res.statusCode !== 200)
|
|
||||||
return callback(new Error(`Request failed (status code: ${res.statusCode})`));
|
|
||||||
|
|
||||||
let rawData = "";
|
|
||||||
res.on("data", (chunk) => rawData += chunk);
|
|
||||||
|
|
||||||
res.on("end", () => {
|
|
||||||
let pos = JSON.parse(rawData)["iss_position"];
|
|
||||||
cache = [+pos["latitude"], +pos["longitude"]];
|
|
||||||
cacheExpire = Date.now() + 10000;
|
|
||||||
callback(null, cache);
|
|
||||||
});
|
|
||||||
}).on("error", (err) => {
|
|
||||||
callback(err);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
exports.latlong = latlong;
|
|
||||||
Reference in new issue
Block a user