mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-19 23:28:20 +01:00
Merge pull request #11660 from ninjadq/add_tls_12_min_version_for_registry
Add tls 12 min version for registry
This commit is contained in:
commit
b747fdb68d
@ -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
|
||||||
|
@ -57,6 +57,8 @@ func init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Use this instead of Default Transport in library because it sets ForceAttemptHTTP2 to true
|
||||||
|
// And that options introduced in go 1.13 will cause the https requests hang forever in replication environment
|
||||||
func newDefaultTransport() *http.Transport {
|
func newDefaultTransport() *http.Transport {
|
||||||
return &http.Transport{
|
return &http.Transport{
|
||||||
Proxy: http.ProxyFromEnvironment,
|
Proxy: http.ProxyFromEnvironment,
|
||||||
|
Loading…
Reference in New Issue
Block a user