2021-12-11 19:07:40 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2022-01-20 22:16:37 +03:00
|
|
|
use Shlinkio\Shlink\Core\Config\EnvVars;
|
2021-12-11 19:07:40 +03:00
|
|
|
|
|
|
|
return [
|
|
|
|
|
2021-12-12 12:32:57 +03:00
|
|
|
'rabbitmq' => [
|
2022-04-23 13:44:17 +03:00
|
|
|
'enabled' => (bool) EnvVars::RABBITMQ_ENABLED->loadFromEnv(false),
|
|
|
|
'host' => EnvVars::RABBITMQ_HOST->loadFromEnv(),
|
|
|
|
'port' => (int) EnvVars::RABBITMQ_PORT->loadFromEnv('5672'),
|
|
|
|
'user' => EnvVars::RABBITMQ_USER->loadFromEnv(),
|
|
|
|
'password' => EnvVars::RABBITMQ_PASSWORD->loadFromEnv(),
|
|
|
|
'vhost' => EnvVars::RABBITMQ_VHOST->loadFromEnv('/'),
|
2022-07-25 13:08:22 +03:00
|
|
|
|
|
|
|
// Deprecated
|
|
|
|
'legacy_visits_publishing' => (bool) EnvVars::RABBITMQ_LEGACY_VISITS_PUBLISHING->loadFromEnv(false),
|
2021-12-11 19:07:40 +03:00
|
|
|
],
|
|
|
|
|
|
|
|
];
|