37 lines
No EOL
1 KiB
PHP
37 lines
No EOL
1 KiB
PHP
<?php
|
|
|
|
// timezone (valid ones: https://www.php.net/manual/en/timezones.php)
|
|
date_default_timezone_set('America/New_York');
|
|
|
|
// admin
|
|
$adminPassword = "setAPasswordHere!123";
|
|
|
|
// page title
|
|
$pageTitle = "the cool qna";
|
|
|
|
$pageDomainEnabled = True;
|
|
$pageProto = "https";
|
|
$pagePath = "/qna";
|
|
$pageDomain = "example.com";
|
|
$pageDomainOther = $pageDomain; // you can comment out and change this to a subdomain you want to "go back to". eg your site is me.example.org but you want it to say example.org
|
|
//$pageDomainOther = "me.example.com";
|
|
$pageRoot = "/"; // path to go to
|
|
|
|
// post to fedi?
|
|
$fediEnabled = False;
|
|
$fediAPIRoute = "https://example.com/api/v1/statuses";
|
|
$fediAPIToken = "Bearer AUTHTOKENGOESHERE";
|
|
$fediVisibility = "private";
|
|
|
|
// database setup
|
|
$dbHost = "localhost";
|
|
$dbName = "postgres";
|
|
$dbUsername = "postgres";
|
|
$dbPassword = "postgres";
|
|
|
|
|
|
// !!! DON'T CHANGE ANYTHING AFTER THIS UNLESS YOU KNOW WHAT YOU'RE DOING !!!
|
|
$dbInfo = "host={$dbHost} dbname={$dbName} user={$dbUsername} password={$dbPassword}";
|
|
$db = pg_connect($dbInfo);
|
|
|
|
?>
|