Skip to content

Commit

Permalink
Merge pull request #517 from City-of-Helsinki/update-configuration
Browse files Browse the repository at this point in the history
Automatic update
  • Loading branch information
khalima authored Oct 11, 2023
2 parents 49d28c0 + ec29487 commit e21bd01
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
24 changes: 12 additions & 12 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 e21bd01

Please sign in to comment.