mirror of
https://github.com/SphericalKat/medium.rip.git
synced 2026-11-24 09:54:22 +00:00
Update api.go
This commit is contained in:
1 parent
86823cb2e6
commit
56458d4fdb
1 file changed
+2
@@ -34,7 +34,9 @@ func RegisterRoutes(ctx context.Context, wg *sync.WaitGroup, engine *html.Engine
|
|||||||
}))
|
}))
|
||||||
|
|
||||||
if config.Conf.Proxy != "" {
|
if config.Conf.Proxy != "" {
|
||||||
|
proxy.WithTlsConfig(&tls.Config{ InsecureSkipVerify: true,})
|
||||||
app.Use(proxy.Balancer(proxy.Config{ Servers: []string{ config.Conf.Proxy } , }))
|
app.Use(proxy.Balancer(proxy.Config{ Servers: []string{ config.Conf.Proxy } , }))
|
||||||
|
log.Printf('Using proxy: "%s"", config.Conf.Proxy)
|
||||||
}
|
}
|
||||||
|
|
||||||
routes.RegisterRoutes(app)
|
routes.RegisterRoutes(app)
|
||||||
|
|||||||
Reference in new issue
Block a user