From 54dcaaac0ceaf39e1510d7c46b9e7073174e70be Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 12 Dec 2021 11:24:58 +0100 Subject: [PATCH] Updated to an installer version with support for RabbitMQ --- CHANGELOG.md | 6 ++++++ composer.json | 2 +- config/autoload/installer.global.php | 6 ++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f6d10c1..18802cc2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), and this * The `GET /domains` endpoint includes a new `defaultRedirects` property in the response, with the default redirects set via config or env vars. * The `INVALID_SHORT_URL_REDIRECT_TO`, `REGULAR_404_REDIRECT_TO` and `BASE_URL_REDIRECT_TO` env vars are now deprecated, and should be replaced by `DEFAULT_INVALID_SHORT_URL_REDIRECT`, `DEFAULT_REGULAR_404_REDIRECT` and `DEFAULT_BASE_URL_REDIRECT` respectively. Deprecated ones will continue to work until v3.0.0, where they will be removed. +* [#868](https://github.com/shlinkio/shlink/issues/868) Added support to publish real-time updates in a RabbitMQ server. + + Shlink will create new exchanges and queues for every topic documented in the [Async API spec](https://api-spec.shlink.io/async-api/), meaning, you will have one queue for orphan visits, one for regular visits, and one queue for every short URL with its visits. + + The RabbitMQ server config can be provided via installer config options, or via environment variables. + * [#1204](https://github.com/shlinkio/shlink/issues/1204) Added support for `openswoole` and migrated official docker image to `openswoole`. * [#1242](https://github.com/shlinkio/shlink/issues/1242) Added support to import urls and visits from YOURLS. diff --git a/composer.json b/composer.json index e244fbfc..7064a2b3 100644 --- a/composer.json +++ b/composer.json @@ -52,7 +52,7 @@ "shlinkio/shlink-config": "^1.4", "shlinkio/shlink-event-dispatcher": "dev-main#3925299 as 2.3", "shlinkio/shlink-importer": "dev-main#d099072 as 2.5", - "shlinkio/shlink-installer": "dev-develop#7dd00fb as 6.3", + "shlinkio/shlink-installer": "^6.3", "shlinkio/shlink-ip-geolocation": "^2.2", "symfony/console": "^6.0 || ^5.4", "symfony/filesystem": "^6.0 || ^5.4", diff --git a/config/autoload/installer.global.php b/config/autoload/installer.global.php index def478af..238dea42 100644 --- a/config/autoload/installer.global.php +++ b/config/autoload/installer.global.php @@ -57,6 +57,12 @@ return [ Option\QrCode\DefaultFormatConfigOption::class, Option\QrCode\DefaultErrorCorrectionConfigOption::class, Option\QrCode\DefaultRoundBlockSizeConfigOption::class, + Option\RabbitMq\RabbitMqEnabledConfigOption::class, + Option\RabbitMq\RabbitMqHostConfigOption::class, + Option\RabbitMq\RabbitMqPortConfigOption::class, + Option\RabbitMq\RabbitMqUserConfigOption::class, + Option\RabbitMq\RabbitMqPasswordConfigOption::class, + Option\RabbitMq\RabbitMqVhostConfigOption::class, ], 'installation_commands' => [