summaryrefslogtreecommitdiff
path: root/public_html/vfs_config.php
diff options
context:
space:
mode:
authormoehm2014-09-17 00:16:08 +0200
committermoehm2014-09-17 00:16:08 +0200
commit548e11e863e906bb80695fe7b2789fe4af3f0f39 (patch)
treebfaf74580a8e524ad37132161ef3dc0238ec2f94 /public_html/vfs_config.php
downloadvfs-548e11e863e906bb80695fe7b2789fe4af3f0f39.tar.gz
init
Diffstat (limited to 'public_html/vfs_config.php')
-rw-r--r--public_html/vfs_config.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/public_html/vfs_config.php b/public_html/vfs_config.php
new file mode 100644
index 0000000..141345c
--- /dev/null
+++ b/public_html/vfs_config.php
@@ -0,0 +1,28 @@
+<?php
+
+# mysql access
+define('DBHOST', 'localhost');
+define('DBUSER', 'vfs-user');
+define('DBNAME', 'vfs');
+define('DBPASSWORD', 'secretpassword');
+define('DBPREFIX', 'vfs_');
+
+# absolute path
+define('ABSPATH', dirname(__FILE__));
+
+# file directory
+define('FILEPATH', ABSPATH . '/../files');
+
+# scheme, set to http if set, otherwise plain http
+if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on')
+ define('SCHEME', 'https://');
+else
+ define('SCHEME', 'http://');
+
+# hostname
+define('HOST', $_SERVER['HTTP_HOST']);
+define('DOMAIN', SCHEME . HOST);
+
+# redis access
+define('REDIS_DBNAME', 1);
+define('REDIS_CONNECT', '/var/run/redis/redis.sock');