2022-09-12 13:49:35 +02:00
|
|
|
// Configuration file for the server
|
|
|
|
|
2023-06-10 09:46:04 +02:00
|
|
|
conscrits = ["team00", "team01"];
|
|
|
|
vieux = ["npc0", "npc1"];
|
|
|
|
|
|
|
|
// return 0 for conscrit, 1 for vieux, 2 otherwise
|
|
|
|
function validator(id){
|
|
|
|
if(conscrits.includes(id)) return 0;
|
|
|
|
if(vieux.includes(id)) return 1;
|
|
|
|
return 2;
|
|
|
|
}
|
|
|
|
|
2022-09-12 13:49:35 +02:00
|
|
|
module.exports = {
|
|
|
|
"port": 9000,
|
|
|
|
"key": "certif/server.key",
|
2023-06-10 09:46:04 +02:00
|
|
|
"cert": "certif/server.crt",
|
2023-06-16 17:29:45 +02:00
|
|
|
"validator": validator,
|
|
|
|
|
|
|
|
// Offset for the randomization of the blurred status
|
|
|
|
"lat_ofs": 0.0005,
|
|
|
|
"long_ofs": 0.0005,
|
2023-06-10 09:46:04 +02:00
|
|
|
}
|