allow custom config

This commit is contained in:
jomo
2014-11-23 23:13:25 +01:00
parent bac6a0dadd
commit 796f410248
6 changed files with 21 additions and 5 deletions

13
modules/config.example.js Normal file
View File

@@ -0,0 +1,13 @@
var config = {
min_size: 1, // < 1 will (obviously) cause crash
max_size: 512, // too big values might lead to slow response time or DoS
default_size: 160, // size to be used when no size given
local_cache_time: 3600, // seconds until we will check if the image changed. should be > 60 to prevent mojang 429 response
browser_cache_time: 3600, // seconds until browser will request image again
http_timeout: 1000, // ms until connection to mojang is dropped
faces_dir: 'skins/faces/', // directory where faces are kept. should have trailing '/'
helms_dir: 'skins/helms/', // directory where helms are kept. should have trailing '/'
debug_enabled: false // enables logging.debug
};
module.exports = config;

View File

@@ -7,7 +7,7 @@ var config = {
http_timeout: 3000, // ms until connection to mojang is dropped
faces_dir: 'skins/faces/', // directory where faces are kept. should have trailing '/'
helms_dir: 'skins/helms/', // directory where helms are kept. should have trailing '/'
debug_enabled: true // enables logging.debug
debug_enabled: true // enables logging.debug
};
module.exports = config;
module.exports = config;