Skip to content

Commit 99d6c33

Browse files
Update configuration
1 parent 64f2de5 commit 99d6c33

9 files changed

Lines changed: 348 additions & 205 deletions

compose.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -161,16 +161,6 @@ services:
161161
- "traefik.port=9200"
162162
profiles:
163163
- search
164-
artemis:
165-
container_name: "${COMPOSE_PROJECT_NAME}-artemis"
166-
image: apache/activemq-artemis
167-
depends_on:
168-
- app
169-
networks:
170-
- internal
171-
- stonehenge-network
172-
profiles:
173-
- queue
174164
chromium:
175165
image: selenium/standalone-chromium
176166
environment:

composer.lock

Lines changed: 339 additions & 141 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

conf/cmi/block.block.helfirecommendationsblock.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ dependencies:
55
module:
66
- helfi_recommendations
77
- language
8-
- node
8+
- system
99
theme:
1010
- hdbt
1111
id: helfirecommendationsblock
1212
theme: hdbt
1313
region: content
14-
weight: 1
14+
weight: 10
1515
provider: helfi_recommendations
1616
plugin: helfi_recommendations
1717
settings:

conf/cmi/core.extension.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ module:
151151
social_media: 0
152152
sophron: 0
153153
stage_file_proxy: 0
154-
stomp: 0
155154
system: 0
156155
taxonomy: 0
157156
telephone: 0

conf/cmi/imagemagick.settings.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ _core:
22
default_config_hash: do7QLcSY6lDV82NBI3jy5FNsUwWFjjJzXmHPTGsSvIQ
33
quality: 75
44
binaries: imagemagick
5+
imagemagick_version: v7
56
path_to_binaries: ''
67
prepend: ''
78
log_warnings: true

conf/cmi/language/sv/views.view.archive.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,7 @@ display:
2121
exposed_sorts_label: 'Sortera efter'
2222
sort_asc_label: Stigande
2323
sort_desc_label: Fallande
24-
arguments:
25-
created_year_month:
26-
title: '{{ arguments.created_year_month }}'
2724
block_1:
2825
display_title: Block
29-
display_options:
30-
arguments:
31-
created_year_month:
32-
title: '{{ arguments.created_year_month }}'
3326
page_1:
3427
display_title: Sida

conf/cmi/language/sv/views.view.files.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ display:
66
display_options:
77
title: Filer
88
fields:
9-
fid:
10-
label: Fid
119
filename:
1210
label: Namn
1311
separator: ', '
@@ -26,8 +24,6 @@ display:
2624
label: 'Datum för ändring'
2725
count:
2826
label: 'Används i'
29-
alter:
30-
path: 'admin/content/files/usage/{{ fid }}'
3127
format_plural_string: !!binary MSBwbGFjZQNAY291bnQgcGxhY2Vz
3228
pager:
3329
options:
@@ -76,7 +72,6 @@ display:
7672
label: 'Registrerar modul'
7773
count:
7874
label: 'Antal använd'
79-
format_plural_string: !!binary MQNAY291bnQ=
8075
pager:
8176
options:
8277
tags:

conf/cmi/language/sv/views.view.user_admin_people.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ display:
1919
label: Roller
2020
created:
2121
label: 'Medlem i'
22-
settings:
23-
future_format: '@interval'
24-
past_format: '@interval'
2522
access:
2623
label: 'Senast åtkomst'
2724
settings:

public/sites/default/settings.php

Lines changed: 6 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -258,42 +258,6 @@ function drupal_get_env(string|array $variables) : mixed {
258258
$config['helfi_proxy.settings']['session_suffix'] = $session_suffix;
259259
}
260260

261-
$amq_destination = drupal_get_env([
262-
'PROJECT_NAME',
263-
]);
264-
$amq_brokers = getenv('AMQ_BROKERS');
265-
266-
if ($amq_brokers && $amq_destination) {
267-
$settings['stomp']['default'] = [
268-
'clientId' => getenv('AMQ_CLIENT_ID') ?: 'client_ ' . $amq_destination,
269-
'login' => getenv('AMQ_USER') ?: NULL,
270-
'passcode' => getenv('AMQ_PASSWORD') ?: NULL,
271-
'destination' => sprintf('/queue/%s', $amq_destination),
272-
'brokers' => $amq_brokers,
273-
'timeout' => ['read' => 12000],
274-
'heartbeat' => [
275-
'send' => 20000,
276-
'receive' => 0,
277-
'observers' => [
278-
[
279-
'class' => '\Stomp\Network\Observer\HeartbeatEmitter',
280-
],
281-
],
282-
],
283-
];
284-
285-
$queues = [
286-
'helfi_navigation_menu_queue',
287-
'helfi_api_base_revision',
288-
];
289-
foreach ($queues as $queue) {
290-
// $settings['queue_service_' . $queue] = 'queue.stomp.default';
291-
}
292-
// You must configure project specific queues manually in 'all.settings.php'
293-
// file.
294-
// @see https://github.com/City-of-Helsinki/drupal-helfi-platform/blob/main/documentation/queue.md
295-
}
296-
297261
if (
298262
($redis_host = getenv('REDIS_HOST')) &&
299263
file_exists('modules/contrib/redis/redis.services.yml') &&
@@ -401,6 +365,12 @@ function drupal_get_env(string|array $variables) : mixed {
401365
$config['helfi_search.settings']['openai_model'] = getenv('OPENAI_MODEL');
402366
}
403367

368+
// Hakuvahti:
369+
if (getenv('HAKUVAHTI_URL')) {
370+
$config['helfi_hakuvahti.settings']['base_url'] = getenv('HAKUVAHTI_URL');
371+
$config['helfi_hakuvahti.settings']['api_key'] = getenv('HAKUVAHTI_API_KEY');
372+
}
373+
404374
// E2E test users. We should never do this in production, so adding a failsafe
405375
// in case the environment variable would ever end up in production.
406376
if (getenv('APP_ENV') !== 'production' && $e2e_test_user = getenv('E2E_TEST_USER')) {

0 commit comments

Comments
 (0)