gitlab: fix bool filter for csp enabled conf

This commit is contained in:
saibotk 2023-08-27 16:41:32 +02:00
parent 786720e415
commit 7a17ef277e
Signed by: saibotk
GPG key ID: 67585F0065E261D5

View file

@ -38,7 +38,7 @@ services:
# CSP config
gitlab_rails['content_security_policy'] = {
enabled: {{ gitlab_csp.enabled | default(true) }},
enabled: {{ gitlab_csp.enabled | default(true) | bool | lower }},
report_only: false,
directives: {
default_src: "'self' {{ gitlab_csp.default_src | default("") }}",