1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 05:09:42 +02:00

Merge pull request #375 from dimoonster/master

Proxy support when communicate with plantuml
This commit is contained in:
Harvey Kandola 2020-08-17 16:09:51 +01:00 committed by GitHub
commit 4a7d915ebb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,6 +102,7 @@ func (p *Provider) generateDiagram(ctx *provider.Context, data string) string {
org, _ := p.Store.Organization.GetOrganization(ctx.Request, ctx.OrgID)
var transport = &http.Transport{
Proxy: http.ProxyFromEnvironment,
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true, // TODO should be glick.InsecureSkipVerifyTLS (from -insecure flag) but get error: x509: certificate signed by unknown authority
}}