forked from acouzens/open5gs
Fixed the WebUI to Support MongoDB 6.0(#1824)
This commit is contained in:
parent
ec4acd4eca
commit
e81265f015
|
@ -104,6 +104,15 @@ export DEBEMAIL='acetcom@gmail.com'
|
||||||
$ ./misc/git-version-gen . > .tarball-version 2>/dev/null
|
$ ./misc/git-version-gen . > .tarball-version 2>/dev/null
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* WebUI Version Change
|
||||||
|
|
||||||
|
```
|
||||||
|
$ cat ./docker/webui/Dockerfile
|
||||||
|
$ cat ./webui/package.json
|
||||||
|
$ cat ./webui/package-lock.json
|
||||||
|
$ cat ./docs/assets/webui/install
|
||||||
|
```
|
||||||
|
|
||||||
* Upload OpenBuildService
|
* Upload OpenBuildService
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -3,7 +3,7 @@ FROM node:carbon
|
||||||
MAINTAINER Sukchan Lee <acetcom@gmail.com>
|
MAINTAINER Sukchan Lee <acetcom@gmail.com>
|
||||||
|
|
||||||
ARG PACKAGE=open5gs
|
ARG PACKAGE=open5gs
|
||||||
ARG VERSION=2.2.6
|
ARG VERSION=2.5.0
|
||||||
|
|
||||||
RUN set -e; \
|
RUN set -e; \
|
||||||
cd /usr/src; \
|
cd /usr/src; \
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
PACKAGE="open5gs"
|
PACKAGE="open5gs"
|
||||||
VERSION="2.4.11"
|
VERSION="2.5.0"
|
||||||
|
|
||||||
print_status() {
|
print_status() {
|
||||||
echo
|
echo
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,51 +1,51 @@
|
||||||
{
|
{
|
||||||
"name": "open5gs",
|
"name": "open5gs",
|
||||||
"version": "2.4.11",
|
"version": "2.5.0",
|
||||||
"description": "Open5gs",
|
"description": "Open5gs",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"repository": "https://github.com/open5gs/open5gs/webui",
|
"repository": "https://github.com/open5gs/open5gs/webui",
|
||||||
"author": "Open5gs Group",
|
"author": "Open5gs Group",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.16.2",
|
"axios": "^1.1.3",
|
||||||
"babel-plugin-polished": "^1.1.0",
|
"babel-plugin-polished": "^1.1.0",
|
||||||
"babel-plugin-styled-components": "^1.5.1",
|
"babel-plugin-styled-components": "^2.0.7",
|
||||||
"body-parser": "^1.18.3",
|
"body-parser": "^1.20.1",
|
||||||
"connect-mongo": "^1.3.2",
|
"connect-mongo": "^4.6.0",
|
||||||
"express": "^4.16.3",
|
"express": "^4.18.2",
|
||||||
"express-restify-mongoose": "^4.3.0",
|
"express-restify-mongoose": "^7.0.2",
|
||||||
"express-session": "^1.15.2",
|
"express-session": "^1.17.3",
|
||||||
"immutable": "^3.8.1",
|
"immutable": "^4.1.0",
|
||||||
"jsonwebtoken": "^8.5.1",
|
"jsonwebtoken": "^8.5.1",
|
||||||
"lodash": "^4.17.10",
|
"lodash": "^4.17.21",
|
||||||
"lusca": "^1.6.0",
|
"lusca": "^1.7.0",
|
||||||
"method-override": "^2.3.9",
|
"method-override": "^3.0.0",
|
||||||
"mongoose": "^4.13.14",
|
"mongoose": "^6.7.0",
|
||||||
"mongoose-long": "^0.1.1",
|
"mongoose-long": "^0.6.0",
|
||||||
"morgan": "^1.8.2",
|
"morgan": "^1.10.0",
|
||||||
"next": "^3.2.3",
|
"next": "^3.2.3",
|
||||||
"next-redux-wrapper": "^1.3.5",
|
"next-redux-wrapper": "^1.3.5",
|
||||||
"nprogress": "^0.2.0",
|
"nprogress": "^0.2.0",
|
||||||
"open-color": "^1.6.3",
|
"open-color": "^1.9.1",
|
||||||
"passport": "^0.4.0",
|
"passport": "^0.6.0",
|
||||||
"passport-jwt": "^4.0.0",
|
"passport-jwt": "^4.0.0",
|
||||||
"passport-local": "^1.0.0",
|
"passport-local": "^1.0.0",
|
||||||
"passport-local-mongoose": "^4.5.0",
|
"passport-local-mongoose": "^7.1.2",
|
||||||
"prop-types": "^15.6.2",
|
"prop-types": "^15.8.1",
|
||||||
"react": "^15.6.1",
|
"react": "^15.6.1",
|
||||||
"react-dom": "^15.6.1",
|
"react-dom": "^15.6.1",
|
||||||
"react-event-listener": "^0.5.9",
|
"react-event-listener": "^0.5.9",
|
||||||
"react-icons": "^2.2.5",
|
"react-icons": "^2.2.5",
|
||||||
"react-jsonschema-form": "^0.50.1",
|
"react-jsonschema-form": "^0.50.1",
|
||||||
"react-notification-system": "^0.2.17",
|
"react-notification-system": "^0.2.17",
|
||||||
"react-onclickoutside": "^6.7.1",
|
"react-onclickoutside": "^6.12.2",
|
||||||
"react-redux": "^5.0.7",
|
"react-redux": "^5.0.7",
|
||||||
"react-transition-group": "^1.1.3",
|
"react-transition-group": "^1.1.3",
|
||||||
"redux": "^3.7.2",
|
"redux": "^3.7.2",
|
||||||
"redux-actions": "^2.4.0",
|
"redux-actions": "^2.4.0",
|
||||||
"redux-saga": "^0.15.6",
|
"redux-saga": "^0.15.6",
|
||||||
"styled-components": "^2.4.1",
|
"styled-components": "^2.4.1",
|
||||||
"traverse": "^0.6.6"
|
"traverse": "^0.6.7"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "node server/index.js",
|
"dev": "node server/index.js",
|
||||||
|
|
|
@ -17,7 +17,7 @@ const morgan = require('morgan');
|
||||||
const session = require('express-session');
|
const session = require('express-session');
|
||||||
|
|
||||||
const mongoose = require('mongoose');
|
const mongoose = require('mongoose');
|
||||||
const MongoStore = require('connect-mongo')(session);
|
const MongoStore = require('connect-mongo');
|
||||||
|
|
||||||
const passport = require('passport');
|
const passport = require('passport');
|
||||||
const LocalStrategy = require('passport-local').Strategy;
|
const LocalStrategy = require('passport-local').Strategy;
|
||||||
|
@ -37,7 +37,8 @@ co(function* () {
|
||||||
mongoose.set('debug', true);
|
mongoose.set('debug', true);
|
||||||
}
|
}
|
||||||
const db = yield mongoose.connect(process.env.DB_URI, {
|
const db = yield mongoose.connect(process.env.DB_URI, {
|
||||||
useMongoClient: true,
|
useNewUrlParser: true,
|
||||||
|
useUnifiedTopology: true
|
||||||
/* other options */
|
/* other options */
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -70,8 +71,8 @@ co(function* () {
|
||||||
|
|
||||||
server.use(session({
|
server.use(session({
|
||||||
secret: secret,
|
secret: secret,
|
||||||
store: new MongoStore({
|
store: MongoStore.create({
|
||||||
mongooseConnection: mongoose.connection,
|
mongoUrl: process.env.DB_URI,
|
||||||
ttl: 60 * 60 * 24 * 7 * 2
|
ttl: 60 * 60 * 24 * 7 * 2
|
||||||
}),
|
}),
|
||||||
resave: false,
|
resave: false,
|
||||||
|
|
Loading…
Reference in New Issue