config.example.js 1.9 KB

12345678910111213141516171819202122232425
  1. var config = {
  2. min_size: 1, // for avatars
  3. max_size: 512, // for avatars; too big values might lead to slow response time or DoS
  4. default_size: 160, // for avatars; size to be used when no size given
  5. min_scale: 1, // for 3D renders
  6. max_scale: 10, // for 3D renders; too big values might lead to slow response time or DoS
  7. default_scale: 6, // for 3D renders; scale to be used when no scale given
  8. local_cache_time: 1200, // seconds until we will check if the image changed. should be > 60 to prevent mojang 429 response
  9. browser_cache_time: 3600, // seconds until browser will request image again
  10. cleaning_interval: 1800, // seconds interval: deleting images if disk size at limit
  11. cleaning_disk_limit: 10240, // min allowed available KB on disk to trigger cleaning
  12. cleaning_redis_limit: 24576, // max allowed used KB on redis to trigger redis flush
  13. cleaning_amount: 50000, // amount of avatar (and their helm) files to clean
  14. http_timeout: 1000, // ms until connection to mojang is dropped
  15. debug_enabled: false, // enables logging.debug
  16. faces_dir: "images/faces/", // directory where faces are kept. should have trailing "/"
  17. helms_dir: "images/helms/", // directory where helms are kept. should have trailing "/"
  18. skins_dir: "images/skins/", // directory where skins are kept. should have trailing "/"
  19. renders_dir: "images/renders/", // Directory where rendered skins are kept. should have trailing "/"
  20. capes_dir: "images/capes/", // directory where capes are kept. should have trailing "/"
  21. clusters: 1, // We recommend not using multiple clusters YET, see issue #80
  22. log_time: true, // set to false if you use an external logger that provides timestamps
  23. };
  24. module.exports = config;