config.js 774 B

12345678910111213
  1. var config = {
  2. min_size: 1, // < 1 will (obviously) cause crash
  3. max_size: 512, // too big values might lead to slow response time or DoS
  4. default_size: 160, // size to be used when no size given
  5. local_cache_time: 3600, // seconds until we will check if the image changed. should be > 60 to prevent mojang 429 response
  6. browser_cache_time: 3600, // seconds until browser will request image again
  7. http_timeout: 3000, // ms until connection to mojang is dropped
  8. faces_dir: 'skins/faces/', // directory where faces are kept. should have trailing '/'
  9. helms_dir: 'skins/helms/', // directory where helms are kept. should have trailing '/'
  10. debug_enabled: true // enables logging.debug
  11. };
  12. module.exports = config;