From b19307f1be53ce92a6c2448a1fe3f965ebddde21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Tue, 16 Dec 2025 10:56:33 +0100 Subject: [PATCH] allow http2 connections to proxy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- .woodpecker.star | 2 +- pkg/service/http/service.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.woodpecker.star b/.woodpecker.star index 96bc55d3da..ceeb8172e1 100644 --- a/.woodpecker.star +++ b/.woodpecker.star @@ -1231,7 +1231,7 @@ def wopiValidatorTests(ctx, storage, wopiServerType, accounts_hash_difficulty = "commands": [ "curl -v -X PUT '%s/remote.php/webdav/test.wopitest' -k --fail --retry-connrefused --retry 7 --retry-all-errors -u admin:admin -D headers.txt" % OC_URL, "cat headers.txt", - "export FILE_ID=$(cat headers.txt | sed -n -e 's/^.*Oc-Fileid: //p')", + "export FILE_ID=$(cat headers.txt | sed -n -e 's/^.*oc-fileid: //Ip')", "export URL=\"%s/app/open?app_name=FakeOffice&file_id=$FILE_ID\"" % OC_URL, "export URL=$(echo $URL | tr -d '[:cntrl:]')", "curl -v -X POST \"$URL\" -k --fail --retry-connrefused --retry 7 --retry-all-errors -u admin:admin > open.json", diff --git a/pkg/service/http/service.go b/pkg/service/http/service.go index ae8d67082f..4c184c6164 100644 --- a/pkg/service/http/service.go +++ b/pkg/service/http/service.go @@ -49,6 +49,8 @@ func NewService(opts ...Option) (Service, error) { } tlsConfig := &tls.Config{ Certificates: []tls.Certificate{cert}, + MinVersion: tls.VersionTLS12, + NextProtos: []string{"h2", "http/1.1"}, } mServer = mhttps.NewServer(server.TLSConfig(tlsConfig)) } else {