59 lines
1.9 KiB
JSON
59 lines
1.9 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"}
|
|
},
|
|
"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,
|
|
"client": { }
|
|
}
|
|
}
|
|
} |