mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
allow DEBUG env variable to be used
makes it easier to turn on debugging in production without changing the config
This commit is contained in:
parent
5533a3ef91
commit
8dddb1e022
@ -12,7 +12,7 @@ var config = {
|
||||
cleaning_redis_limit: 24576, // max allowed used KB on redis to trigger redis flush
|
||||
cleaning_amount: 50000, // amount of avatar (and their helm) files to clean
|
||||
http_timeout: 1000, // ms until connection to mojang is dropped
|
||||
debug_enabled: false, // enables logging.debug
|
||||
debug_enabled: process.env.DEBUG === "true" || false, // enables logging.debug
|
||||
faces_dir: "images/faces/", // directory where faces are kept. should have trailing "/"
|
||||
helms_dir: "images/helms/", // directory where helms are kept. should have trailing "/"
|
||||
skins_dir: "images/skins/", // directory where skins are kept. should have trailing "/"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user