1st draft for rabbitMQ

This commit is contained in:
Nicolas Lœuillet
2016-01-15 08:24:32 +01:00
committed by Jeremy Benoist
parent 59758d8fe5
commit 56c778b415
9 changed files with 173 additions and 11 deletions

View File

@ -38,6 +38,7 @@ class AppKernel extends Kernel
new Wallabag\UserBundle\WallabagUserBundle(),
new Wallabag\ImportBundle\WallabagImportBundle(),
new Wallabag\AnnotationBundle\WallabagAnnotationBundle(),
new OldSound\RabbitMqBundle\OldSoundRabbitMqBundle(),
];
if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {

View File

@ -215,3 +215,28 @@ lexik_maintenance:
response:
code: 503
status: "wallabag Service Temporarily Unavailable"
old_sound_rabbit_mq:
connections:
default:
host: %rabbitmq_host%
port: %rabbitmq_port%
user: %rabbitmq_user%
password: %rabbitmq_password%
vhost: /
lazy: false
producers:
wallabag:
connection: default
exchange_options:
name: 'wallabag_exchange'
type: topic
consumers:
entries:
connection: default
exchange_options:
name: 'wallabag_exchange'
type: topic
queue_options:
name: 'wallabag_queue'
callback: wallabag_import.consumer.entry

View File

@ -38,3 +38,15 @@ parameters:
fosuser_confirmation: true
from_email: no-reply@wallabag.org
rss_limit: 50
# pocket import
pocket_consumer_key: xxxxxxxx
# RabbitMQ processing
rabbitmq: false
rabbitmq_host: localhost
rabbitmq_port: 5672
rabbitmq_user: guest
rabbitmq_password: guest