diff options
Diffstat (limited to 'www/config.php')
| -rw-r--r-- | www/config.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/www/config.php b/www/config.php new file mode 100644 index 0000000..322ca53 --- /dev/null +++ b/www/config.php @@ -0,0 +1,20 @@ +<?php + +# Database + $dbname = 'vfs'; + $dbuser = 'vfs-user'; + $dbhost = 'localhost'; + $dbpassword = 'secretpassword'; + +# set preferred HTTP scheme, changes to https if set + $SCHEME="http://"; + + if(isset($_SERVER["HTTPS"])){ + if($_SERVER["HTTPS"] == "on"){ + $SCHEME="https://"; + } + } + +# host name + $HOST = $_SERVER["HTTP_HOST"]; + $DOMAIN = $SCHEME.$HOST."/"; |
