meta files
This commit is contained in:
parent
6204dd4c37
commit
1b7cf44154
19
LICENSE
Normal file
19
LICENSE
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
Copyright (c) 2022 Navy.gif
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
2
index.js
2
index.js
@ -1,5 +1,5 @@
|
|||||||
const options = require('./options.json');
|
const options = require('./options.json');
|
||||||
const { Controller } = require('./src/controller');
|
const { Controller } = require('./src/controller');
|
||||||
|
|
||||||
const controller = new Controller({ ...options, env: require('dotenv').config() });
|
const controller = new Controller({ ...options, env: require('dotenv').config().parsed });
|
||||||
controller.init();
|
controller.init();
|
35
options.json
35
options.json
@ -4,6 +4,39 @@
|
|||||||
"respawn": false
|
"respawn": false
|
||||||
},
|
},
|
||||||
"serverOptions": {
|
"serverOptions": {
|
||||||
|
"callbackURL": "/api/login",
|
||||||
|
"http": {
|
||||||
|
"port": 4000
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"logger": {
|
||||||
|
"customTypes": ["access", "unauthorised"],
|
||||||
|
"customStreams": ["access", "debug", "unauthorised"],
|
||||||
|
"customTypeMapping": {"access": "access", "debug": "debug", "unauthorised": "unauthorised"},
|
||||||
|
"customColors": {"access": "green", "unauthorised": "red"}
|
||||||
|
},
|
||||||
|
"discord": {
|
||||||
|
"id": "955399395740905482",
|
||||||
|
"scope": ["identify"],
|
||||||
|
"version": 10
|
||||||
|
},
|
||||||
|
"databases": {
|
||||||
|
"mariadb": {
|
||||||
|
"load": false,
|
||||||
|
"client": {
|
||||||
|
"waitForConnections": true,
|
||||||
|
"connectionLimit": 20,
|
||||||
|
"supportBigNumbers": true,
|
||||||
|
"bigNumberStrings": true,
|
||||||
|
"multipleStatements": true,
|
||||||
|
"collation": "utf8mb4_general_ci"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"mongodb": {
|
||||||
|
"load": true,
|
||||||
|
"client": {
|
||||||
|
"useNewUrlParser": true
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
14
package.json
14
package.json
@ -5,13 +5,23 @@
|
|||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"author": "Navy.gif",
|
"author": "Navy.gif",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"private": true,
|
"private": false,
|
||||||
|
"repository": {
|
||||||
|
"url": "https://git.corgi.wtf/Navy.gif/webserver-framework",
|
||||||
|
"type": "git"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@discordjs/collection": "^1.2.0",
|
"@discordjs/collection": "^1.2.0",
|
||||||
"@navy.gif/logger": "^1.0.0",
|
"@navy.gif/logger": "^1.0.0",
|
||||||
|
"@navy.gif/passport-discord": "^0.2.2-b",
|
||||||
|
"connect-mongo": "^4.6.0",
|
||||||
"dotenv": "^16.0.3",
|
"dotenv": "^16.0.3",
|
||||||
"express": "^4.18.2",
|
"express": "^4.18.2",
|
||||||
"helmet": "^6.0.0"
|
"express-session": "^1.17.3",
|
||||||
|
"helmet": "^6.0.0",
|
||||||
|
"mongodb": "^4.11.0",
|
||||||
|
"mysql": "^2.18.1",
|
||||||
|
"passport": "^0.6.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^8.26.0",
|
"eslint": "^8.26.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user