aboutsummaryrefslogtreecommitdiffstats
path: root/install/htconfig.sample.php
diff options
context:
space:
mode:
Diffstat (limited to 'install/htconfig.sample.php')
-rwxr-xr-xinstall/htconfig.sample.php30
1 files changed, 21 insertions, 9 deletions
diff --git a/install/htconfig.sample.php b/install/htconfig.sample.php
index 21697a951..5e506225e 100755
--- a/install/htconfig.sample.php
+++ b/install/htconfig.sample.php
@@ -17,7 +17,9 @@ $db_port = 0; // leave 0 for default or set your port
$db_user = 'mysqlusername';
$db_pass = 'mysqlpassword';
$db_data = 'mysqldatabasename';
+$db_type = 0; // use 1 for postgres, 0 for mysql
+define( 'UNO', 0 );
/*
* Notice: Many of the following settings will be available in the admin panel
@@ -37,11 +39,21 @@ $db_data = 'mysqldatabasename';
$default_timezone = 'America/Los_Angeles';
-// What is your site name?
+// What is your site name? DO NOT ADD A TRAILING SLASH!
-$a->config['system']['baseurl'] = 'https://myredsite.example';
-$a->config['system']['sitename'] = "Hubzilla";
-$a->config['system']['location_hash'] = 'if the auto install failed, put a unique random string here';
+App::$config['system']['baseurl'] = 'https://myredsite.example';
+App::$config['system']['sitename'] = "Hubzilla";
+App::$config['system']['location_hash'] = 'if the auto install failed, put a unique random string here';
+
+
+// These lines set additional security headers to be sent with all responses
+// You may wish to set transport_security_header to 0 if your server already sends
+// this header. content_security_policy may need to be disabled if you wish to
+// run the piwik analytics plugin or include other offsite resources on a page
+
+App::$config['system']['transport_security_header'] = 1;
+App::$config['system']['content_security_policy'] = 1;
+App::$config['system']['ssl_cookie_protection'] = 1;
// Your choices are REGISTER_OPEN, REGISTER_APPROVE, or REGISTER_CLOSED.
@@ -54,13 +66,13 @@ $a->config['system']['location_hash'] = 'if the auto install failed, put a uniqu
// In order to perform system administration via the admin panel, admin_email
// must precisely match the email address of the person logged in.
-$a->config['system']['register_policy'] = REGISTER_OPEN;
-$a->config['system']['register_text'] = '';
-$a->config['system']['admin_email'] = '';
+App::$config['system']['register_policy'] = REGISTER_OPEN;
+App::$config['system']['register_text'] = '';
+App::$config['system']['admin_email'] = '';
// Location of PHP command line processor
-$a->config['system']['php_path'] = 'php';
+App::$config['system']['php_path'] = 'php';
// Configure how we communicate with directory servers.
@@ -69,7 +81,7 @@ $a->config['system']['php_path'] = 'php';
// DIRECTORY_MODE_PRIMARY = main directory server (you do not want this unless you are operating your own realm. one per realm.)
// DIRECTORY_MODE_STANDALONE = "off the grid" or private directory services (only local site members in directory)
-$a->config['system']['directory_mode'] = DIRECTORY_MODE_NORMAL;
+App::$config['system']['directory_mode'] = DIRECTORY_MODE_NORMAL;
// PHP error logging setup