crafatar/www.js
jomo 15a4f17560 add rate limit option for sessionserver
any outgoing requests to the sessionserver
that would exceed the configured rate limit are skipped
to prevent being blocked by CloudFront

if a texture hash is cached but outdated, the cache ttl will be bumped
as if the request succeeded, in order to lower requests in the near future
2020-03-29 07:43:23 +02:00

12 lines
339 B
JavaScript

var networking = require("./lib/networking");
var logging = require("./lib/logging");
var config = require("./config");
process.on("uncaughtException", function(err) {
logging.error("uncaughtException", err.stack || err.toString());
process.exit(1);
});
setInterval(networking.resetCounter, 1000);
require("./lib/server.js").boot();