Fix tls min version for registry

cert,key,mintls should in the same context

Signed-off-by: DQ <dengq@vmware.com>
This commit is contained in:
DQ 2020-04-19 16:16:19 +08:00
parent dbc1f17919
commit b728f04d0a

View File

@ -24,6 +24,8 @@ http:
{% if internal_tls.enabled %} {% if internal_tls.enabled %}
addr: :5443 addr: :5443
tls: tls:
certificate: /etc/harbor/tls/registry.crt
key: /etc/harbor/tls/registry.key
minimumtls: tls1.2 minimumtls: tls1.2
{% else %} {% else %}
addr: :5000 addr: :5000
@ -31,12 +33,6 @@ http:
secret: placeholder secret: placeholder
debug: debug:
addr: localhost:5001 addr: localhost:5001
{% if internal_tls.enabled %}
tls:
certificate: /etc/harbor/tls/registry.crt
key: /etc/harbor/tls/registry.key
{% endif %}
auth: auth:
htpasswd: htpasswd:
realm: harbor-registry-basic-realm realm: harbor-registry-basic-realm