webserver-framework/options.json
Navy.gif 62a1b8e2d7
Some checks failed
continuous-integration/drone/push Build is failing
+RateLimiter
+Roles (WIP)
+Entity abstraction, abstract user refactor
2023-04-01 14:55:32 +03:00

62 lines
2.0 KiB
JSON

{
"serverFilePath": "./src/server/Server.js",
"shardOptions": {
"respawn": false
},
"shardCount": 1,
"serverOptions": {
"serveFiles": "./files",
"callbackURL": "/api/login",
"http": {
"port": 4000
},
"validUserTypes": ["user", "service", "system"],
"registrationEnabled": true,
"requireCodeForRegister": true,
"OAuthProviders": [
{
"name": "Discord",
"authoriseURL": "https://discord.com/oauth2/authorize",
"tokenURL": "https://discord.com/api/v10/oauth2/token",
"profileURL": "https://discord.com/api/v10/users/@me",
"iconURL": "https://assets-global.website-files.com/6257adef93867e50d84d30e2/636e0a69f118df70ad7828d4_icon_clyde_blurple_RGB.svg"
}
]
},
"logger": {
"customTypes": ["access", "unauthorised"],
"customStreams": ["access", "debug", "unauthorised"],
"customTypeMapping": {"access": "access", "debug": "debug", "unauthorised": "unauthorised"},
"customColors": {"access": "green", "unauthorised": "red"},
"logLevel": 0,
"logLevelMapping": { "access": 5, "unauthorised": 5 }
},
"discord": {
"scope": ["identify"],
"version": 10
},
"databases": {
"mariadb": {
"load": false,
"client": {
"waitForConnections": true,
"connectionLimit": 20,
"supportBigNumbers": true,
"bigNumberStrings": false,
"multipleStatements": true,
"collation": "utf8mb4_general_ci"
},
"cluster": {
"canRetry": true,
"removeNodeErrorCount": 5,
"restoreNodeTimeout": 30000,
"defaultSelector": "RR"
}
},
"mongodb": {
"load": true,
"debug": true,
"client": { }
}
}
}