[CORE] Better queues defaults
This commit is contained in:
@@ -8,7 +8,7 @@ This plugin is replaces other queue manager plugins, such as UnQueue,
|
||||
which enabled by default and which should, but is not required to be
|
||||
disabled.
|
||||
|
||||
addPlugin('StompQueue', ['servers' => ['your-redis-instance-and-port'],
|
||||
addPlugin('StompQueue', ['servers' => ['your-stomp-instance-and-port'],
|
||||
'vhost' => 'your-vhost',
|
||||
'username' => 'your-username',
|
||||
'password' => 'your-password']);
|
||||
@@ -39,4 +39,4 @@ In config.php
|
||||
|
||||
addPlugin('StompQueue', ['servers' => 'tcp://localhost:61613', 'vhost' => '/',
|
||||
// Please don't actually use the default credentials
|
||||
'username' => 'guest', 'password' => 'guest']);
|
||||
'username' => 'guest', 'password' => 'guest']);
|
@@ -27,7 +27,7 @@ defined('GNUSOCIAL') || die();
|
||||
|
||||
class StompQueuePlugin extends Plugin
|
||||
{
|
||||
const PLUGIN_VERSION = '0.0.1';
|
||||
const PLUGIN_VERSION = '0.1.0';
|
||||
|
||||
// settings which can be set in config.php with addPlugin('StompQueue', ['param'=>'value', ...]);
|
||||
public $servers = null;
|
||||
@@ -61,12 +61,15 @@ class StompQueuePlugin extends Plugin
|
||||
|
||||
public function onPluginVersion(array &$versions): bool
|
||||
{
|
||||
$versions[] = array('name' => 'StompQueue',
|
||||
'version' => self::PLUGIN_VERSION,
|
||||
'author' => 'Miguel Dantas',
|
||||
'description' =>
|
||||
// TRANS: Plugin description.
|
||||
_m('Plugin implementing STOMP as a backend for GNU social queues'));
|
||||
$versions[] = [
|
||||
'name' => 'StompQueue',
|
||||
'version' => self::PLUGIN_VERSION,
|
||||
'author' => 'Miguel Dantas',
|
||||
'homepage' => GNUSOCIAL_ENGINE_URL,
|
||||
'description' =>
|
||||
// TRANS: Plugin description.
|
||||
_m('Plugin implementing STOMP as a backend for GNU social queues')
|
||||
];
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user