Updated Nubian to run in a docker composition
This commit is contained in:
parent
ea2cefb8f3
commit
9b964af050
5 changed files with 10 additions and 6 deletions
|
@ -11,11 +11,14 @@ const AdmZip = require("adm-zip");
|
|||
const Pharaoh = require("../egypt/pharaoh");
|
||||
const desertConfig = require("../egypt/desert_config.json");
|
||||
const config = require("../config.json");
|
||||
// Create the desert if it doesn't exist
|
||||
if (!fexists(desertConfig.desertPath)) mkdir(desertConfig.desertPath);
|
||||
//Constants
|
||||
const fileStorage = new Pharaoh(
|
||||
resolvePath(desertConfig.desertPath),
|
||||
desertConfig.schema
|
||||
);
|
||||
|
||||
const zipDir = resolvePath(config.Storage.ZipPath);
|
||||
function addFile(fileData) {
|
||||
fileStorage.addEntry(fileData.fileUuid, "files", fileData);
|
||||
|
|
|
@ -10,11 +10,11 @@
|
|||
"ZipDownloadExpire": 720000
|
||||
},
|
||||
"Server": {
|
||||
"Port": 4000,
|
||||
"Port": 52001,
|
||||
"Debug": false,
|
||||
"BodyLimit": "5mb",
|
||||
"ZipRemovalInterval": 1800000,
|
||||
"jwtHeader": "authorization",
|
||||
"authServer": "http://localhost:4001/api/user/data"
|
||||
"authServer": "http://cairo.dunestorm.net:52000/api/user/data"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"desertPath": "desert/",
|
||||
"desertPath": "src/desert/",
|
||||
"schema": {
|
||||
"files": {
|
||||
"tokenList": "abcdefghijklmnopqrstuvwxyz0123456789",
|
||||
|
|
|
@ -1,33 +0,0 @@
|
|||
{
|
||||
"name": "duneserver",
|
||||
"version": "1.0.0",
|
||||
"description": "Dunemask Web server",
|
||||
"main": "server.js",
|
||||
"scripts": {
|
||||
"start": "node server.js --no-warnings",
|
||||
"test-server": "nodemon src/server.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/Dunemask/npmserver.git"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"bugs": {
|
||||
"url": "https://github.com/Dunemask/npmserver/issues"
|
||||
},
|
||||
"homepage": "https://github.com/Dunemask/npmserver#readme",
|
||||
"dependencies": {
|
||||
"adm-zip": "^0.5.5",
|
||||
"axios": "^0.21.1",
|
||||
"bcrypt": "^5.0.1",
|
||||
"body-parser": "^1.19.0",
|
||||
"express": "^4.17.1",
|
||||
"express-session": "^1.17.1",
|
||||
"lodash": "^4.17.21",
|
||||
"multer": "^1.4.2",
|
||||
"path": "^0.12.7",
|
||||
"rimraf": "^3.0.2",
|
||||
"uuid-with-v6": "^1.1.2"
|
||||
}
|
||||
}
|
Reference in a new issue