Skip to content

Commit 6a28a60

Browse files
authored
Merge pull request #907 from City-of-Helsinki/dev
Dev to main
2 parents 44da5e1 + 7eedb93 commit 6a28a60

14 files changed

Lines changed: 512 additions & 287 deletions

File tree

.platform/schema

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19
1+
20

composer.lock

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

conf/cmi/csp.settings.yml

Lines changed: 96 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,43 @@ report-only:
1616
- 'https://coh-chat-app-prod.ow6i4n9pdzm.eu-de.codeengine.appdomain.cloud'
1717
- 'https://*.hel.fi'
1818
- 'https://coh-chat-app-test.mo1wrhhyog0.eu-de.codeengine.appdomain.cloud'
19+
- 'https://data.reactandshare.com'
20+
- 'https://webanalytics.digiaiiris.com'
21+
- 'https://*.askem.com'
22+
- 'https://*.siteimprove.com'
23+
- 'https://connect.facebook.net'
24+
- 'https://hel.humany.net'
25+
- 'https://wds.ace.teliacompany.com'
26+
- 'https://chat.ace.teliacompany.net'
27+
- 'https://api.ace.teliacompany.net'
1928
img-src:
20-
base: self
29+
base: any
2130
sources:
2231
- 'data:'
2332
- '*.blob.core.windows.net'
2433
- 'https://coh-chat-app-prod.ow6i4n9pdzm.eu-de.codeengine.appdomain.cloud'
2534
- 'https://*.hel.fi'
2635
- 'https://coh-chat-app-test.mo1wrhhyog0.eu-de.codeengine.appdomain.cloud'
36+
- 'https://data.reactandshare.com'
2737
script-src:
2838
base: self
2939
flags:
3040
- report-sample
3141
- unsafe-inline
42+
- unsafe-eval
43+
- wasm-unsafe-eval
44+
sources:
45+
- 'https://coh-chat-app-prod.ow6i4n9pdzm.eu-de.codeengine.appdomain.cloud'
46+
- 'https://*.hel.fi'
47+
- 'https://coh-chat-app-test.mo1wrhhyog0.eu-de.codeengine.appdomain.cloud'
48+
- 'https://cdn.reactandshare.com'
49+
- 'https://data.reactandshare.com'
50+
- 'https://*.askem.com'
51+
- 'https://webanalytics.digiaiiris.com'
52+
- 'https://connect.facebook.net'
53+
- 'https://wds.ace.teliacompany.com'
54+
- 'https://e.infogram.com'
3255
style-src:
33-
base: self
34-
flags:
35-
- report-sample
36-
script-src-elem:
3756
base: self
3857
flags:
3958
- report-sample
@@ -42,23 +61,86 @@ report-only:
4261
- 'https://coh-chat-app-prod.ow6i4n9pdzm.eu-de.codeengine.appdomain.cloud'
4362
- 'https://*.hel.fi'
4463
- 'https://coh-chat-app-test.mo1wrhhyog0.eu-de.codeengine.appdomain.cloud'
45-
style-src-elem:
64+
- 'https://hel.humany.net'
65+
- 'https://wds.ace.teliacompany.com'
66+
font-src:
4667
base: self
47-
flags:
48-
- report-sample
49-
- unsafe-inline
5068
sources:
5169
- 'https://coh-chat-app-prod.ow6i4n9pdzm.eu-de.codeengine.appdomain.cloud'
5270
- 'https://*.hel.fi'
5371
- 'https://coh-chat-app-test.mo1wrhhyog0.eu-de.codeengine.appdomain.cloud'
54-
font-src:
72+
- 'https://hel.humany.net'
73+
- 'https://makasiini.hel.ninja'
74+
- 'https://ace-knowledge-cdn.teliacompany.net'
75+
frame-src:
5576
base: self
5677
sources:
78+
- palvelukartta.hel.fi
5779
- 'https://coh-chat-app-prod.ow6i4n9pdzm.eu-de.codeengine.appdomain.cloud'
5880
- 'https://*.hel.fi'
5981
- 'https://coh-chat-app-test.mo1wrhhyog0.eu-de.codeengine.appdomain.cloud'
82+
- 'https://*.siteimprove.com'
83+
- 'https://*.userneeds.com'
84+
- 'https://agreeable-island-03e85b803.azurestaticapps.net'
85+
- 'https://*.hotjar.com'
86+
- 'https://coh-chat-app-ibm.eu-de.mybluemix.net'
87+
- 'https://coh-chat-app-prod-ibm.eu-de.mybluemix.net'
88+
- 'https://suite.icareus.com'
89+
- 'https://*.helsinkikanava.fi'
90+
- 'https://*.youtube.com'
91+
- 'https://*.youtu.be'
92+
- 'https://*.facebook.com'
93+
- 'https://*.twitter.com'
94+
- 'https://*.linkedin.com'
95+
- 'https://*.readspeaker.com'
96+
- 'https://*.vimeo.com'
97+
- 'https://*.google.com'
98+
- 'https://*.siteimproveanalytics.com'
99+
- 'https://*.snoobi.com'
100+
- 'https://*.dreambroker.com'
101+
- 'https://youtu.be'
102+
- 'https://dreambroker.com'
103+
- 'https://pollev.com'
104+
- 'https://e.infogram.com'
105+
- 'https://infogram.com'
106+
- 'https://tyoterveys-helsinki-pv.mail-eur.net'
107+
- 'https://walls.io'
108+
- 'https://*.youtube-nocookie.com'
109+
- 'https://*.flockler.com'
110+
- 'https://*.lightwidget.com'
111+
- 'https://hel-thk-botti.kuurahealth.com'
112+
- 'https://*.giosg.com'
113+
- 'https://*.giosgusercontent.com'
114+
- 'https://helfi.fi1.frosmo.com'
115+
- 'https://survey.feedbackly.com'
116+
- 'https://survey.userneeds.com'
117+
- 'https://*.powerbi.com'
118+
- 'https://coh-chat-app-test.eu-de.mybluemix.net'
119+
- 'https://coh-chat-app-dev.eu-de.mybluemix.net'
120+
- 'https://coh-chat-app-prod.eu-de.mybluemix.net'
121+
- 'https://hkp.maanmittauslaitos.fi'
122+
- 'https://reittiopas.hsl.fi'
123+
- 'https://players.icareus.com'
124+
- 'https://wds.ace.teliacompany.com'
125+
- 'https://events.icareus.com'
126+
object-src:
127+
base: self
128+
sources:
129+
- palvelukartta.hel.fi
130+
- 'https://*.youtube-nocookie.com'
131+
- 'https://*.youtube.com'
132+
- 'https://*.youtu.be'
133+
- 'https://*.vimeo.com'
134+
- 'https://suite.icareus.com'
135+
- 'https://players.icareus.com'
136+
- 'https://events.icareus.com'
137+
- 'https://*.helsinkikanava.fi'
138+
media-src:
139+
base: self
140+
sources:
141+
- 'data:'
60142
reporting:
61-
plugin: raven
143+
plugin: none
62144
enforce:
63145
enable: true
64146
directives:
@@ -72,6 +154,7 @@ enforce:
72154
- 'https://*.vimeo.com'
73155
- 'https://suite.icareus.com'
74156
- 'https://players.icareus.com'
157+
- 'https://events.icareus.com'
75158
- 'https://*.helsinkikanava.fi'
76159
frame-src:
77160
base: self
@@ -103,6 +186,7 @@ enforce:
103186
- 'https://dreambroker.com'
104187
- 'https://pollev.com'
105188
- 'https://e.infogram.com'
189+
- 'https://infogram.com'
106190
- 'https://tyoterveys-helsinki-pv.mail-eur.net'
107191
- 'https://walls.io'
108192
- 'https://*.youtube-nocookie.com'
@@ -122,5 +206,6 @@ enforce:
122206
- 'https://reittiopas.hsl.fi'
123207
- 'https://players.icareus.com'
124208
- 'https://wds.ace.teliacompany.com'
209+
- 'https://events.icareus.com'
125210
reporting:
126211
plugin: raven

conf/cmi/language/fi/views.view.helfi_redirect.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ display:
3434
is_custom:
3535
expose:
3636
label: 'Käyttäjän luoma'
37-
status:
37+
enabled:
3838
expose:
39-
label: Julkaistu
39+
label: Käytössä
4040
exposed_form:
4141
options:
4242
submit_button: Suodata
@@ -66,8 +66,8 @@ display:
6666
is_custom:
6767
label: 'Käyttäjän luoma'
6868
separator: ', '
69-
status:
70-
label: Julkaistu
69+
enabled:
70+
label: Käytössä
7171
separator: ', '
7272
empty:
7373
area_text_custom:

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ display:
3434
is_custom:
3535
expose:
3636
label: Användarskapad
37-
status:
37+
enabled:
3838
expose:
39-
label: Publicerad
39+
label: Aktiverad
4040
exposed_form:
4141
options:
4242
submit_button: Filtrera
@@ -66,8 +66,8 @@ display:
6666
is_custom:
6767
label: Användarskapad
6868
separator: ', '
69-
status:
70-
label: Publicerad
69+
enabled:
70+
label: Aktiverad
7171
separator: ', '
7272
empty:
7373
area_text_custom:

conf/cmi/views.view.helfi_redirect.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dependencies:
99
- redirect
1010
- user
1111
_core:
12-
default_config_hash: tH9tiLAhaR2LdCQkjUf5FTsU-8Adc_4pBxrNJPtBKL4
12+
default_config_hash: OOTz1kUCar9ntcNS2WMRD5a3gbGWhjlYpi2GrjWjD8Y
1313
id: helfi_redirect
1414
label: Redirect
1515
module: views
@@ -224,17 +224,17 @@ display:
224224
multi_type: separator
225225
separator: ', '
226226
field_api_classes: false
227-
status:
228-
id: status
227+
enabled:
228+
id: enabled
229229
table: redirect
230-
field: status
230+
field: enabled
231231
relationship: none
232232
group_type: group
233233
admin_label: ''
234234
entity_type: redirect
235-
entity_field: status
235+
entity_field: enabled
236236
plugin_id: field
237-
label: Published
237+
label: Enabled
238238
exclude: false
239239
alter:
240240
alter_text: false
@@ -278,7 +278,7 @@ display:
278278
click_sort_column: value
279279
type: boolean
280280
settings:
281-
format: default
281+
format: unicode-yes-no
282282
format_custom_false: ''
283283
format_custom_true: ''
284284
group_column: value
@@ -682,29 +682,29 @@ display:
682682
default_group: All
683683
default_group_multiple: { }
684684
group_items: { }
685-
status:
686-
id: status
685+
enabled:
686+
id: enabled
687687
table: redirect
688-
field: status
688+
field: enabled
689689
relationship: none
690690
group_type: group
691691
admin_label: ''
692692
entity_type: redirect
693-
entity_field: status
693+
entity_field: enabled
694694
plugin_id: boolean
695695
operator: '='
696696
value: '1'
697697
group: 1
698698
exposed: true
699699
expose:
700700
operator_id: ''
701-
label: Published
701+
label: Enabled
702702
description: ''
703703
use_operator: false
704-
operator: status_op
704+
operator: enabled_op
705705
operator_limit_selection: false
706706
operator_list: { }
707-
identifier: status
707+
identifier: enabled
708708
required: false
709709
remember: false
710710
multiple: false
@@ -747,7 +747,7 @@ display:
747747
redirect_redirect__uri: redirect_redirect__uri
748748
status_code: status_code
749749
is_custom: is_custom
750-
status: status
750+
enabled: enabled
751751
language: language
752752
created: created
753753
operations: operations
@@ -786,7 +786,7 @@ display:
786786
separator: ''
787787
empty_column: false
788788
responsive: ''
789-
status:
789+
enabled:
790790
sortable: true
791791
default_sort_order: asc
792792
align: ''
@@ -802,7 +802,7 @@ display:
802802
responsive: ''
803803
created:
804804
sortable: true
805-
default_sort_order: asc
805+
default_sort_order: desc
806806
align: ''
807807
separator: ''
808808
empty_column: false

docker/elastic-proxy/elastic.conf

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,38 @@ server {
33
server_name _;
44
client_max_body_size 50m;
55

6-
location /ping {
7-
add_header Content-Type application/json;
8-
return 200 '{"status":"success","result":"Proxy alive"}';
6+
location /health {
7+
access_log off;
8+
9+
proxy_pass ${ELASTICSEARCH_URL}/_cluster/health;
10+
proxy_ssl_verify off;
11+
proxy_redirect off;
12+
proxy_set_header Authorization $elastic_authorization;
13+
proxy_pass_header Authorization;
14+
15+
proxy_connect_timeout 5s;
16+
proxy_send_timeout 5s;
17+
proxy_read_timeout 5s;
918
}
1019

1120
location ~ ^/([a-z][a-z_,-]*)/(_search|_msearch)$ {
12-
limit_except GET POST {
13-
deny all;
21+
limit_except GET POST OPTIONS {
22+
deny all;
1423
}
24+
25+
if ($request_method = 'OPTIONS') {
26+
return 204;
27+
}
28+
1529
proxy_pass ${ELASTICSEARCH_URL};
30+
proxy_ssl_verify off;
1631
proxy_redirect off;
1732
proxy_set_header Authorization $elastic_authorization;
1833
proxy_pass_header Authorization;
19-
proxy_set_header X-Real-IP $remote_addr;
20-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
21-
proxy_set_header Host $http_host;
2234
proxy_pass_header Access-Control-Allow-Origin;
2335
proxy_pass_header Access-Control-Allow-Methods;
2436
proxy_hide_header Access-Control-Allow-Headers;
37+
add_header 'Access-Control-Allow-Origin' '*' always;
38+
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization' always;
2539
}
2640
}

docker/openshift/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ RUN composer install --no-progress --profile --prefer-dist --no-interaction --no
77

88
# Copy custom entrypoints.
99
# @see https://github.com/City-of-Helsinki/drupal-docker-images/tree/main/openshift/drupal
10-
RUN mkdir -p /crons /entrypoints /hooks/deploy /hooks/db-replace
10+
RUN mkdir -p /crons /entrypoints /hooks
1111
COPY docker/openshift/entrypoints/ /entrypoints
1212
COPY docker/openshift/crons/ /crons
13-
COPY docker/openshift/deploy /hooks/deploy
14-
COPY docker/openshift/post-db-replace /hooks/db-replace
15-
RUN chmod +x /entrypoints/* /hooks/deploy/* /crons/* /hooks/db-replace/*
13+
COPY docker/openshift/hooks/ /hooks
14+
RUN chmod -R +x /entrypoints/* /hooks/* /crons/*
1615

1716
COPY docker/openshift/init.sh /
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)