summaryrefslogtreecommitdiff
path: root/app/constants.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-02-28 12:14:37 -0500
committerFrederic Guillot <fred@kanboard.net>2016-02-28 12:14:37 -0500
commit85d4833ce5de9a54f5d928cf4c4a7a239e9b19d3 (patch)
tree87a47ac1b3c7fe8db51a39a160a574a4e0f70afd /app/constants.php
parent8d71bbb1228fcfb3da80010c94b747cc56f739e2 (diff)
Add some environment variables
Diffstat (limited to 'app/constants.php')
-rw-r--r--app/constants.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/constants.php b/app/constants.php
index 011fa784..4201e6e4 100644
--- a/app/constants.php
+++ b/app/constants.php
@@ -1,8 +1,8 @@
<?php
// Enable/disable debug
-defined('DEBUG') or define('DEBUG', false);
-defined('DEBUG_FILE') or define('DEBUG_FILE', __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'data'.DIRECTORY_SEPARATOR.'debug.log');
+defined('DEBUG') or define('DEBUG', getenv('DEBUG'));
+defined('DEBUG_FILE') or define('DEBUG_FILE', getenv('DEBUG_FILE') ?: __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'data'.DIRECTORY_SEPARATOR.'debug.log');
// Plugin directory
defined('PLUGINS_DIR') or define('PLUGINS_DIR', __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'plugins');
@@ -80,7 +80,7 @@ defined('ENABLE_HSTS') or define('ENABLE_HSTS', true);
defined('ENABLE_XFRAME') or define('ENABLE_XFRAME', true);
// Syslog
-defined('ENABLE_SYSLOG') or define('ENABLE_SYSLOG', true);
+defined('ENABLE_SYSLOG') or define('ENABLE_SYSLOG', getenv('ENABLE_SYSLOG'));
// Default files directory
defined('FILES_DIR') or define('FILES_DIR', 'data'.DIRECTORY_SEPARATOR.'files');