From 025ca487cf016c279d822372993e1704d06cd50d Mon Sep 17 00:00:00 2001 From: famfo Date: Sat, 31 May 2025 19:15:39 +0200 Subject: [feature/internal/httpclient] add option to configure outgoing protocol (#4134) # Description Adds a configuration option to set the outgoing transport of HTTP requests for testing purposes. ## Checklist - [x] I/we have read the [GoToSocial contribution guidelines](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md). - [ ] I/we have discussed the proposed changes already, either in an issue on the repository, or in the Matrix chat. - [x] I/we have not leveraged AI to create the proposed changes. - [x] I/we have performed a self-review of added code. - [x] I/we have written code that is legible and maintainable by others. - [ ] I/we have commented the added code, particularly in hard-to-understand areas. - [x] I/we have made any necessary changes to documentation. - [ ] I/we have added tests that cover new code. - [ ] I/we have run tests and they pass locally with the changes. - [ ] I/we have run `go fmt ./...` and `golangci-lint run`. - Note: `go fmt` yes, golangci-lint fails, can't load any configuration Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4134 Reviewed-by: kim Co-authored-by: famfo Co-committed-by: famfo --- internal/config/config.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/config/config.go') diff --git a/internal/config/config.go b/internal/config/config.go index 303bf8266..5360389af 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -198,6 +198,7 @@ type HTTPClientConfiguration struct { BlockIPs []string `name:"block-ips"` Timeout time.Duration `name:"timeout"` TLSInsecureSkipVerify bool `name:"tls-insecure-skip-verify"` + InsecureOutgoing bool `name:"insecure-outgoing"` } type CacheConfiguration struct { -- cgit v1.2.3