Skip to content

Commit 609fb48

Browse files
committed
fix service name issue, fix oauth
1 parent edfe175 commit 609fb48

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

OpenFlow/src/Config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ export class Config {
125125
Config.otel_debug_log = Config.parseBoolean(Config.getEnv("otel_debug_log", "false"));
126126
Config.otel_trace_url = Config.getEnv("otel_trace_url", "");
127127
Config.otel_metric_url = Config.getEnv("otel_metric_url", "");
128-
Config.otel_servicename = Config.getEnv("otel_servicename", "openflow");
129128
Config.otel_trace_interval = parseInt(Config.getEnv("otel_trace_interval", "5000"));
130129
Config.otel_metric_interval = parseInt(Config.getEnv("otel_metric_interval", "5000"));
131130
Config.validate_user_form = Config.getEnv("validate_user_form", "");
@@ -251,7 +250,6 @@ export class Config {
251250
public static otel_debug_log: boolean = Config.parseBoolean(Config.getEnv("otel_debug_log", "false"));
252251
public static otel_trace_url: string = Config.getEnv("otel_trace_url", "");
253252
public static otel_metric_url: string = Config.getEnv("otel_metric_url", "");
254-
public static otel_servicename: string = Config.getEnv("otel_servicename", "openflow");
255253
public static otel_trace_interval: number = parseInt(Config.getEnv("otel_trace_interval", "5000"));
256254
public static otel_metric_interval: number = parseInt(Config.getEnv("otel_metric_interval", "5000"));
257255

OpenFlowNodeRED/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openiap/nodered",
3-
"version": "1.2.68",
3+
"version": "1.2.71",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {

OpenFlowNodeRED/src/Config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ export class Config {
7373
Config.otel_debug_log = Config.parseBoolean(Config.getEnv("otel_debug_log", "false"));
7474
Config.otel_trace_url = Config.getEnv("otel_trace_url", "");
7575
Config.otel_metric_url = Config.getEnv("otel_metric_url", "");
76-
Config.otel_servicename = Config.getEnv("otel_servicename", "nodered");
7776
Config.otel_trace_interval = parseInt(Config.getEnv("otel_trace_interval", "5000"));
7877
Config.otel_metric_interval = parseInt(Config.getEnv("otel_metric_interval", "5000"));
7978
}
@@ -145,7 +144,6 @@ export class Config {
145144
public static otel_debug_log: boolean = Config.parseBoolean(Config.getEnv("otel_debug_log", "false"));
146145
public static otel_trace_url: string = Config.getEnv("otel_trace_url", "");
147146
public static otel_metric_url: string = Config.getEnv("otel_metric_url", "");
148-
public static otel_servicename: string = Config.getEnv("otel_servicename", "nodered");
149147
public static otel_trace_interval: number = parseInt(Config.getEnv("otel_trace_interval", "5000"));
150148
public static otel_metric_interval: number = parseInt(Config.getEnv("otel_metric_interval", "5000"));
151149

OpenFlowNodeRED/src/cli.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,10 @@ async function doit() {
160160
script: __filename,
161161
args: [servicename, "--run", "--config", envfilepathname]
162162
});
163-
if (process.platform != "win32") {
163+
if (process.platform == "linux") {
164+
await pm2startup("systemd");
165+
}
166+
else if (process.platform != "win32") {
164167
await pm2startup(process.platform as any);
165168
}
166169
await pm2dump();

OpenFlowNodeRED/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ let server: http.Server = null;
165165
if (!NoderedUtil.IsNullEmpty(result.openflow_uniqueid) || !NoderedUtil.IsNullEmpty(result.otel_metric_url)) {
166166
if (!NoderedUtil.IsNullUndefinded(_otel_require)) {
167167
Config.enable_analytics = result.enable_analytics;
168+
Logger.instanse.info("reconfigure otel");
168169
Logger.otel = _otel_require.otel.configure();
169170
}
170171
}

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.68
1+
1.2.71

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openiap/openflow",
3-
"version": "1.2.68",
3+
"version": "1.2.71",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {
@@ -58,7 +58,7 @@
5858
"multer": "^1.4.2",
5959
"multer-gridfs-storage": "^4.2.0",
6060
"oauth2-server": "^3.1.1",
61-
"oidc-provider": "^7.2.0",
61+
"oidc-provider": "^6.31.0",
6262
"passport": "^0.4.1",
6363
"passport-google-oauth20": "^2.0.0",
6464
"passport-local": "^1.0.0",

0 commit comments

Comments
 (0)