A web-based management/monitoring GUI for Disque
- Silex 2
- Twig support, with the twig bridge
- Service Controller support
- HTTP Fragment support
composer require varspool/disque-admin-provider
- Register the provider on your
$app
. The routes will be mounted for you at a configurable prefix:$app->register(new \Varspool\DisqueAdmin\DisqueAdminProvider(), [ // A prefix at which the admin routes will be mounted 'disque_admin.mount_prefix' => '/_disque', ]);
- Link (or serve, using your webserver configuration) the
resources/public
directory at the same prefix (usingtry_files
for example, so we still fall back to PHP for missing paths). e.g.cd web && ln -s ../vendor/varspool/disque-admin-provider/resources/public _disque
You can use the following simple properties to configure a single connection:
disque_admin.host
: string, default '127.0.0.1'disque_admin.port
: int, default 7711disque_admin.password
: ?string, default null
You can optionally configured multiple connections. Extend the disque_admin.credentials
service
and replace it with an array of Disque\Connection\Credentials
instances.
$app->extend('disque_admin.credentials', function (Application $app) {
return [
new Credentials(
'127.0.0.1,
7711,
$app['disque_admin.password'],
$app['disque_admin.connect_timeout'],
$app['disque_admin.timeout']
),
new Credentials(
'10.1.1.1',
7712,
$app['disque_admin.password'],
$app['disque_admin.connect_timeout'],
$app['disque_admin.timeout']
),
];
});