config.example.js 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. var config = {
  2. avatars: {
  3. min_size: 1, // for avatars
  4. max_size: 512, // for avatars; too big values might lead to slow response time or DoS
  5. default_size: 160 // for avatars; size to be used when no size given
  6. },
  7. renders: {
  8. min_scale: 1, // for 3D rendered skins
  9. max_scale: 10, // for 3D rendered skins; too big values might lead to slow response time or DoS
  10. default_scale: 6 // for 3D rendered skins; scale to be used when no scale given
  11. },
  12. cleaner: {
  13. interval: 600, // interval seconds to check limits
  14. disk_limit: 524288, // min allowed free KB on disk to trigger image deletion
  15. redis_limit: 24576, // max allowed used KB on redis to trigger redis flush
  16. amount: 50000 // amount of skins for which all image types are deleted
  17. },
  18. directories: {
  19. faces: "./images/faces/", // directory where faces are kept. must have trailing "/"
  20. helms: "./images/helms/", // directory where helms are kept. must have trailing "/"
  21. skins: "./images/skins/", // directory where skins are kept. must have trailing "/"
  22. renders: "./images/renders/", // directory where rendered skins are kept. must have trailing "/"
  23. capes: "./images/capes/" // directory where capes are kept. must have trailing "/"
  24. },
  25. caching: {
  26. local: 1200, // seconds until we will check if user's skin changed. should be > 60 to comply with Mojang's rate limit
  27. browser: 3600 // seconds until browser will request image again
  28. },
  29. server: {
  30. http_timeout: 2000, // ms until connection to Mojang is dropped
  31. debug_enabled: false, // enables logging.debug & editing index page
  32. log_time: true // set to false if you use an external logger that provides timestamps
  33. },
  34. sponsor: {
  35. sidebar: '<hr><div class="list-group"><a class="list-group-item sponsor-item" href="https://akliz.net/crafatar" target="_blank" title="Applies to all modpacks and plans for the first billing cycle only.">Save 20% on a Minecraft server with Akliz.</a></div>',
  36. top_right: '<a href="https://akliz.net/crafatar" target="_blank" title="Crafatar is sponsored by Akliz" class="sponsor"><img src="/images/sponsor.png" alt="Akliz"></a>'
  37. },
  38. };
  39. module.exports = config;