mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 15:41:16 +01:00
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
12 lines
339 B
JavaScript
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(); |