Skip to content

Commit 4219082

Browse files
committed
1
1 parent 8a1b323 commit 4219082

4 files changed

Lines changed: 23 additions & 15 deletions

File tree

Dockerfile

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
1-
FROM node:10.16.0-jessie
1+
FROM node:latest
22
EXPOSE 80
33
EXPOSE 5858
44
WORKDIR /data
5-
# RUN printf "deb http://archive.debian.org/debian/ jessie main\ndeb-src http://archive.debian.org/debian/ jessie main\ndeb http://security.debian.org jessie/updates main\ndeb-src http://security.debian.org jessie/updates main" > /etc/apt/sources.list
6-
RUN apt update && apt install node-gyp -y
7-
run npm i x509
85
COPY package*.json ./
96
RUN npm install
107
COPY dist ./
118

12-
ENTRYPOINT ["/usr/local/bin/node", "--inspect=0.0.0.0:5858", "index.js"]
9+
ENTRYPOINT ["/usr/local/bin/node", "--inspect=0.0.0.0:5858", "index.js"]
10+
11+
12+
# FROM node:10.16.0-jessie
13+
# EXPOSE 80
14+
# EXPOSE 5858
15+
# WORKDIR /data
16+
# # RUN printf "deb http://archive.debian.org/debian/ jessie main\ndeb-src http://archive.debian.org/debian/ jessie main\ndeb http://security.debian.org jessie/updates main\ndeb-src http://security.debian.org jessie/updates main" > /etc/apt/sources.list
17+
# RUN apt update && apt install node-gyp -y
18+
# run npm i x509
19+
# COPY package*.json ./
20+
# RUN npm install
21+
# COPY dist ./
22+
23+
# ENTRYPOINT ["/usr/local/bin/node", "--inspect=0.0.0.0:5858", "index.js"]

OpenFlow/src/LoginProvider.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import * as bodyParser from "body-parser";
77
import * as SAMLStrategy from "passport-saml";
88
import * as GoogleStrategy from "passport-google-oauth20";
99
import * as LocalStrategy from "passport-local";
10-
import * as wsfed from "wsfed";
10+
// import * as wsfed from "wsfed";
1111

1212
import * as passport from "passport";
1313
import { Config } from "./Config";
@@ -250,13 +250,13 @@ export class LoginProvider {
250250
strategy.name = key;
251251
this._logger.info(options.callbackUrl);
252252

253-
app.get("/" + key + "/FederationMetadata/2007-06/FederationMetadata.xml",
254-
wsfed.metadata({
255-
cert: Buffer.from(Config.signing_crt, "base64").toString("ascii"),
256-
issuer: issuer
257-
}));
253+
// app.get("/" + key + "/FederationMetadata/2007-06/FederationMetadata.xml",
254+
// wsfed.metadata({
255+
// cert: Buffer.from(Config.signing_crt, "base64").toString("ascii"),
256+
// issuer: issuer
257+
// }));
258258
var CertPEM = Buffer.from(Config.signing_crt, "base64").toString("ascii").replace(/(-----(BEGIN|END) CERTIFICATE-----|\n)/g, '');
259-
app.get("/" + key + "2/FederationMetadata/2007-06/FederationMetadata.xml",
259+
app.get("/" + key + "/FederationMetadata/2007-06/FederationMetadata.xml",
260260
(req: express.Request, res: express.Response, next: express.NextFunction) => {
261261
res.set("Content-Type", "text/xml");
262262
res.send(`

OpenFlowNodeRED/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ import { NoderedUtil } from "./nodered/nodes/NoderedUtil";
1616

1717
const logger: winston.Logger = Logger.configure();
1818

19-
Config.DumpConfig();
20-
2119
process.on('unhandledRejection', up => {
2220
console.error(up);
2321
throw up

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
"ssl-root-cas": "^1.3.1",
5353
"winston": "^3.2.1",
5454
"ws": "^6.2.1",
55-
"wsfed": "^4.0.0",
5655
"x509": "^0.3.4"
5756
}
5857
}

0 commit comments

Comments
 (0)