2
0

config.js 1.3 KB

1234567891011121314151617181920
  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: 30, // seconds until we will check if the image changed. should be > 60 to prevent mojang 429 response
  6. browser_cache_time: 30, // seconds until browser will request image again
  7. http_timeout: 3000, // ms until connection to mojang is dropped
  8. cleaning_interval: 1800, // seconds interval: deleting images if disk size at limit
  9. cleaning_limit: 10240, // minumum required available KB on disk to trigger cleaning
  10. cleaning_amount: 50000, // amount of avatar (and their helm) files to clean
  11. faces_dir: 'skins/faces/', // directory where faces are kept. should have trailing '/'
  12. helms_dir: 'skins/helms/', // directory where helms are kept. should have trailing '/'
  13. skins_dir: 'skins/skins/', // directory where skins are kept. should have trailing '/'
  14. renders_dir: 'skins/renders/', // Directory where rendered skins are kept. should have trailing '/'
  15. debug_enabled: true, // enables logging.debug
  16. default_scale: 6, // the scale of rendered avatars
  17. maximum_sale: 10 // the maximum scale of rendered avatars
  18. };
  19. module.exports = config;