webserver-framework/options.json

62 lines
2.0 KiB
JSON
Raw Normal View History

2022-11-06 18:36:13 +01:00
{
"serverFilePath": "./src/server/Server.js",
2022-11-06 18:36:13 +01:00
"shardOptions": {
"respawn": false
2022-11-06 18:36:13 +01:00
},
2023-02-10 22:57:44 +01:00
"shardCount": 1,
2022-11-06 18:36:13 +01:00
"serverOptions": {
2022-11-10 15:14:02 +01:00
"serveFiles": "./files",
2022-11-09 10:23:54 +01:00
"callbackURL": "/api/login",
"http": {
"port": 4000
2022-11-09 16:09:05 +01:00
},
"validUserTypes": ["user", "service", "system"],
2022-11-24 23:12:45 +01:00
"registrationEnabled": true,
2022-11-27 22:20:18 +01:00
"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"
}
]
2022-11-09 10:23:54 +01:00
},
"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 }
2022-11-09 10:23:54 +01:00
},
"discord": {
"scope": ["identify"],
"version": 10
},
"databases": {
"mariadb": {
"load": false,
"client": {
"waitForConnections": true,
"connectionLimit": 20,
"supportBigNumbers": true,
2022-11-20 17:36:05 +01:00
"bigNumberStrings": false,
2022-11-09 10:23:54 +01:00
"multipleStatements": true,
"collation": "utf8mb4_general_ci"
},
"cluster": {
"canRetry": true,
"removeNodeErrorCount": 5,
"restoreNodeTimeout": 30000,
"defaultSelector": "RR"
2022-11-09 10:23:54 +01:00
}
},
"mongodb": {
"load": true,
"debug": true,
"client": { }
2022-11-09 10:23:54 +01:00
}
2022-11-06 18:36:13 +01:00
}
}