Skip to content

Commit

Permalink
Merge pull request #175 from City-of-Helsinki/UHF-9125
Browse files Browse the repository at this point in the history
UHF-9125: Fixed Artemis connection parameters
  • Loading branch information
tuutti authored Oct 10, 2023
2 parents 732287a + 9566af9 commit 627b0e0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions public/sites/default/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,16 +245,18 @@ function drupal_get_env(string|array $variables) : mixed {
'PROJECT_NAME',
]);

if ($artemis_brokers = getenv('ARTEMIS_BROKERS') && $artemis_destination) {
$artemis_brokers = getenv('ARTEMIS_BROKERS');

if ($artemis_brokers && $artemis_destination) {
$settings['stomp']['default'] = [
'clientId' => getenv('ARTEMIS_CLIENT_ID') ?: 'artemis',
'login' => getenv('ARTEMIS_LOGIN'),
'passcode' => getenv('ARTEMIS_PASSCODE'),
'login' => getenv('ARTEMIS_LOGIN') ?: NULL,
'passcode' => getenv('ARTEMIS_PASSCODE') ?: NULL,
'destination' => sprintf('/queue/%s', $artemis_destination),
'brokers' => $artemis_brokers,
'timeout' => ['read' => 15000],
'timeout' => ['read' => 12000],
'heartbeat' => [
'send' => 12000,
'send' => 20000,
'receive' => 0,
'observers' => [
[
Expand Down

0 comments on commit 627b0e0

Please sign in to comment.