diff options
author | Iván Ávalos <avalos@disroot.org> | 2023-09-02 00:18:55 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2023-09-02 00:41:00 -0600 |
commit | aa1bac9aa30c6ba8ff48c8b70dfc523e3197e315 (patch) | |
tree | be33e8c6dd22e1eb62a02488c0a305f11fcbfa75 /config-dist.php | |
parent | 706c4cc1fa62492344089a3310c7bcea1041f78b (diff) | |
download | microblog-aa1bac9aa30c6ba8ff48c8b70dfc523e3197e315.tar.gz microblog-aa1bac9aa30c6ba8ff48c8b70dfc523e3197e315.tar.bz2 microblog-aa1bac9aa30c6ba8ff48c8b70dfc523e3197e315.zip |
Remove ActivityPub and Twitter support, and fix localhost
Diffstat (limited to 'config-dist.php')
-rw-r--r-- | config-dist.php | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/config-dist.php b/config-dist.php index 095eadb..1c521df 100644 --- a/config-dist.php +++ b/config-dist.php @@ -20,8 +20,9 @@ if(mb_strlen($path[0]) == 0) { $path = []; } // (mostly) user settings $config = array( - 'url' => 'http'.(!empty($_SERVER['HTTPS']) ? 's' : '').'://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['SCRIPT_NAME']), + 'url' => 'http'.(!empty($_SERVER['HTTPS']) ? 's' : '').'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']), 'path' => $path, + 'database_path' => 'sqlite:'.ROOT.DS.'posts.db', 'language' => 'en', 'max_characters' => 280, 'posts_per_page' => 10, @@ -34,14 +35,6 @@ $config = array( 'app_token' => '3e83b13d99bf0de6c6bde5ac5ca4ae687a3d46db', // random secret used as auth with XMLRPC 'cookie_life' => 60*60*24*7*4, // cookie life in seconds 'ping' => true, // enable automatic pinging of the micro.blog service - 'activitypub' => true, - 'crosspost_to_twitter' => false, // set this to true to automatically crosspost to a twitter account (requires app credentials, see below) - 'twitter' => array( // get your tokens over at https://dev.twitter.com/apps - 'oauth_access_token' => '', - 'oauth_access_token_secret' => '', - 'consumer_key' => '', - 'consumer_secret' => '' - ), 'show_edits' => true, // displays the modification time of posts 'subdir_install' => ($dir === '/') ? false : true, ); @@ -52,6 +45,6 @@ $config['xmlrpc'] = function_exists('xmlrpc_server_create'); $config['local_time_offset'] = date('P'); // load functions -require_once(ROOT.DS.'database.php'); -require_once(ROOT.DS.'functions.php'); -require_once(ROOT.DS.'lib_autolink.php'); +require_once(ROOT.DS.'lib'.DS.'database.php'); +require_once(ROOT.DS.'lib'.DS.'functions.php'); +require_once(ROOT.DS.'lib'.DS.'autolink.php'); |