@routr/one 2.1.13 → 2.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/configs.js +1 -7
- package/dist/envs.js +1 -1
- package/dist/runner.js +12 -3
- package/package.json +3 -3
package/dist/configs.js
CHANGED
package/dist/envs.js
CHANGED
|
@@ -21,7 +21,7 @@ exports.RTPENGINE_PORT = exports.RTPENGINE_HOST = exports.EDGEPORT_RUNNER = expo
|
|
|
21
21
|
* limitations under the License.
|
|
22
22
|
*/
|
|
23
23
|
const common_1 = require("@routr/common");
|
|
24
|
-
common_1.Assertions.assertEnvsAreSet(["
|
|
24
|
+
common_1.Assertions.assertEnvsAreSet(["DATABASE_URL"]);
|
|
25
25
|
exports.BIND_ADDR = (_a = process.env.BIND_ADDR) !== null && _a !== void 0 ? _a : "0.0.0.0:51904";
|
|
26
26
|
exports.EDGEPORT_RUNNER = (_b = process.env.EDGEPORT_RUNNER) !== null && _b !== void 0 ? _b : "/opt/routr/edgeport.sh";
|
|
27
27
|
exports.RTPENGINE_HOST = process.env.RTPENGINE_HOST;
|
package/dist/runner.js
CHANGED
|
@@ -25,16 +25,25 @@ const connect_1 = require("@routr/connect");
|
|
|
25
25
|
const dispatcher_1 = require("@routr/dispatcher");
|
|
26
26
|
const location_1 = require("@routr/location");
|
|
27
27
|
const pgdata_1 = require("@routr/pgdata");
|
|
28
|
-
const rtprelay_1 = require("@routr/rtprelay");
|
|
29
28
|
const envs_1 = require("./envs");
|
|
30
29
|
const configs_1 = require("./configs");
|
|
31
30
|
const logger = (0, logger_1.getLogger)({ service: "one", filePath: __filename });
|
|
32
|
-
logger.info("routr v2 // one distribution");
|
|
31
|
+
logger.info("routr v2 // all in one distribution");
|
|
32
|
+
if (envs_1.RTPENGINE_HOST) {
|
|
33
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
34
|
+
const { rtprelay } = require("@routr/rtprelay");
|
|
35
|
+
rtprelay("0.0.0.0:51903", configs_1.rtprelayConfig);
|
|
36
|
+
// Add rtprelay middleware
|
|
37
|
+
configs_1.dispatcherConfig.middlewares.push({
|
|
38
|
+
ref: "rtprelay-middleware",
|
|
39
|
+
addr: "localhost:51903",
|
|
40
|
+
postProcessor: true
|
|
41
|
+
});
|
|
42
|
+
}
|
|
33
43
|
(0, dispatcher_1.messageDispatcher)(configs_1.dispatcherConfig);
|
|
34
44
|
(0, connect_1.connectProcessor)(configs_1.connectConfig);
|
|
35
45
|
(0, location_1.locationService)(configs_1.locationConfig);
|
|
36
46
|
(0, pgdata_1.pgDataService)(configs_1.apiServerConfig);
|
|
37
|
-
(0, rtprelay_1.rtprelay)("0.0.0.0:51903", configs_1.rtprelayConfig);
|
|
38
47
|
const edgeportProcess = (0, child_process_1.spawn)(envs_1.EDGEPORT_RUNNER);
|
|
39
48
|
edgeportProcess.stdout.on("data", (data) => {
|
|
40
49
|
process.stdout.write(`${data}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@routr/one",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.15",
|
|
4
4
|
"description": "Bundle server with everything needed to run Routr Connect",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/routr#readme",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@routr/connect": "^2.1.11",
|
|
25
25
|
"@routr/dispatcher": "^2.1.11",
|
|
26
26
|
"@routr/location": "^2.1.11",
|
|
27
|
-
"@routr/pgdata": "^2.1.
|
|
27
|
+
"@routr/pgdata": "^2.1.15",
|
|
28
28
|
"@routr/rtprelay": "^2.1.11"
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"bugs": {
|
|
41
41
|
"url": "https://github.com/fonoster/routr/issues"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "842bb5f1cc9b2c7296119ef9fd0dcf00e7064772"
|
|
44
44
|
}
|