add support work over proxy HTTP/HTTPS/SOCKS (https://github.com/writefreely/writefreely/issues/947)

This commit is contained in:
iwojim0 2024-03-09 15:39:12 +00:00
parent 427f4980b9
commit 74ae63ab5a
1 changed files with 4 additions and 1 deletions

View File

@ -99,7 +99,10 @@ func (ru *RemoteUser) AsPerson() *activitystreams.Person {
func activityPubClient() *http.Client {
return &http.Client{
Timeout: 15 * time.Second,
Timeout: 120 * time.Second,
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
},
}
}