diff options
Diffstat (limited to 'internal/domain/domain.go')
-rw-r--r-- | internal/domain/domain.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/domain/domain.go b/internal/domain/domain.go index 17a0e1d3..748268e3 100644 --- a/internal/domain/domain.go +++ b/internal/domain/domain.go @@ -5,6 +5,7 @@ import ( "errors" "net/http" "sync" + "time" "gitlab.com/gitlab-org/gitlab-pages/internal/httperrors" "gitlab.com/gitlab-org/gitlab-pages/internal/serving" @@ -125,6 +126,7 @@ func (d *Domain) HasLookupPath(r *http.Request) bool { // EnsureCertificate parses the PEM-encoded certificate for the domain func (d *Domain) EnsureCertificate() (*tls.Certificate, error) { + time.Sleep(10 * time.Second) if d.isUnconfigured() || len(d.CertificateKey) == 0 || len(d.CertificateCert) == 0 { return nil, errors.New("tls certificates can be loaded only for pages with configuration") } |