@routr/one 2.16.0 → 2.17.0

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/README.md CHANGED
@@ -1,3 +1,3 @@
1
- <a href="https://gitpod.io/#https://github.com/fonoster/routr"> <img src="https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod" alt="Contribute with Gitpod" />
1
+ <a href="https://docs.routr.io/guides/develop-with-dev-containers"> <img src="https://img.shields.io/badge/Contribute%20with-Dev%20Containers-908a85?logo=docker" alt="Contribute with Dev Containers" />
2
2
 
3
3
  This module is part of the [Routr](https://routr.io) project. By itself, it does not do much. It is intended to be used as a dependency for other modules. For more information about the project, please visit [https://github.com/fonoster/routr](https://github.com/fonoster/routr).
package/dist/configs.js CHANGED
@@ -29,7 +29,12 @@ exports.connectConfig = {
29
29
  };
30
30
  exports.locationConfig = {
31
31
  bindAddr: "0.0.0.0:51902",
32
- cache: { provider: location_1.CacheProvider.MEMORY }
32
+ cache: envs_1.LOCATION_CACHE_PROVIDER.toUpperCase() === location_1.CacheProvider.REDIS
33
+ ? {
34
+ provider: location_1.CacheProvider.REDIS,
35
+ parameters: envs_1.LOCATION_CACHE_PARAMETERS !== null && envs_1.LOCATION_CACHE_PARAMETERS !== void 0 ? envs_1.LOCATION_CACHE_PARAMETERS : "host=localhost,port=6379"
36
+ }
37
+ : { provider: location_1.CacheProvider.MEMORY }
33
38
  };
34
39
  exports.rtprelayConfig = {
35
40
  host: envs_1.RTPENGINE_HOST,
package/dist/envs.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  export declare const BIND_ADDR: string;
2
2
  export declare const EDGEPORT_RUNNER: string;
3
+ export declare const LOCATION_CACHE_PROVIDER: string;
4
+ export declare const LOCATION_CACHE_PARAMETERS: string;
3
5
  export declare const RTPENGINE_HOST: string;
4
6
  export declare const RTPENGINE_PORT: number;
package/dist/envs.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- var _a, _b;
2
+ var _a, _b, _c;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.RTPENGINE_PORT = exports.RTPENGINE_HOST = exports.EDGEPORT_RUNNER = exports.BIND_ADDR = void 0;
4
+ exports.RTPENGINE_PORT = exports.RTPENGINE_HOST = exports.LOCATION_CACHE_PARAMETERS = exports.LOCATION_CACHE_PROVIDER = exports.EDGEPORT_RUNNER = exports.BIND_ADDR = void 0;
5
5
  /*
6
6
  * Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
7
7
  * http://github.com/fonoster/routr
@@ -24,6 +24,8 @@ const common_1 = require("@routr/common");
24
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
+ exports.LOCATION_CACHE_PROVIDER = (_c = process.env.LOCATION_CACHE_PROVIDER) !== null && _c !== void 0 ? _c : "memory";
28
+ exports.LOCATION_CACHE_PARAMETERS = process.env.LOCATION_CACHE_PARAMETERS;
27
29
  exports.RTPENGINE_HOST = process.env.RTPENGINE_HOST;
28
30
  exports.RTPENGINE_PORT = process.env.RTPENGINE_PORT
29
31
  ? parseInt(process.env.RTPENGINE_PORT)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routr/one",
3
- "version": "2.16.0",
3
+ "version": "2.17.0",
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",
@@ -20,12 +20,12 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@fonoster/logger": "0.6.0",
23
- "@routr/common": "^2.16.0",
24
- "@routr/connect": "^2.16.0",
25
- "@routr/dispatcher": "^2.16.0",
26
- "@routr/location": "^2.16.0",
27
- "@routr/pgdata": "^2.16.0",
28
- "@routr/rtprelay": "^2.16.0"
23
+ "@routr/common": "^2.17.0",
24
+ "@routr/connect": "^2.17.0",
25
+ "@routr/dispatcher": "^2.17.0",
26
+ "@routr/location": "^2.17.0",
27
+ "@routr/pgdata": "^2.17.0",
28
+ "@routr/rtprelay": "^2.17.0"
29
29
  },
30
30
  "files": [
31
31
  "dist"
@@ -40,5 +40,5 @@
40
40
  "bugs": {
41
41
  "url": "https://github.com/fonoster/routr/issues"
42
42
  },
43
- "gitHead": "db8a2eeb4b3f57a7f6b632d8d3378ffe53fc6cfe"
43
+ "gitHead": "9bc2d0a407a82e7b3724bb139ba62504c7b3d49e"
44
44
  }