summaryrefslogtreecommitdiff
path: root/tools/config.php
diff options
context:
space:
mode:
Diffstat (limited to 'tools/config.php')
-rw-r--r--tools/config.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/config.php b/tools/config.php
index d4b6071..eb4b329 100644
--- a/tools/config.php
+++ b/tools/config.php
@@ -1,3 +1,12 @@
<?php
-define("__domain_", "http://tools.iamfabulous.de");
+$_scheme = "http://";
+
+if ( isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] != "")
+ $_scheme = "https://";
+
+if ( ! defined("__domain_") )
+ define("__domain_", $_scheme."tools.iamfabulous.de");
+
+if ( ! defined("REDIS_CONNECT") )
+ define("REDIS_CONNECT", "/var/run/redis/redis.sock");