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