mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 10:15:35 +01:00
Fix cert issue of trivy
Trivy can't access harbor from external if https enabled so inject cert to trivy container trust Signed-off-by: DQ <dengq@vmware.com>
This commit is contained in:
parent
9fe893af91
commit
42c1095216
@ -555,7 +555,12 @@ services:
|
||||
- type: bind
|
||||
source: {{data_volume}}/trivy-adapter/reports
|
||||
target: /home/scanner/.cache/reports
|
||||
{%if internal_tls.enabled %}
|
||||
{% if protocol == 'https' %}
|
||||
- type: bind
|
||||
source: {{data_volume}}/secret/cert/server.crt
|
||||
target: /harbor_cust_cert/harbor_ca.crt
|
||||
{% endif %}
|
||||
{% if internal_tls.enabled %}
|
||||
- type: bind
|
||||
source: {{internal_tls.harbor_internal_ca_crt_path}}
|
||||
target: /harbor_cust_cert/harbor_internal_ca.crt
|
||||
|
Loading…
Reference in New Issue
Block a user