mirror of
https://github.com/SphericalKat/medium.rip.git
synced 2025-12-18 07:25:58 +00:00
Update api.go
This commit is contained in:
parent
3e95bb581e
commit
7d6e0c0aa8
@ -34,6 +34,7 @@ func RegisterRoutes(ctx context.Context, wg *sync.WaitGroup, engine *html.Engine
|
|||||||
Browse: config.Conf.Env == "dev",
|
Browse: config.Conf.Env == "dev",
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
/*
|
||||||
if config.Conf.Proxy != "" {
|
if config.Conf.Proxy != "" {
|
||||||
proxy.WithTlsConfig(&tls.Config{ InsecureSkipVerify: true,})
|
proxy.WithTlsConfig(&tls.Config{ InsecureSkipVerify: true,})
|
||||||
app.Use(proxy.Balancer(proxy.Config{
|
app.Use(proxy.Balancer(proxy.Config{
|
||||||
@ -58,6 +59,7 @@ func RegisterRoutes(ctx context.Context, wg *sync.WaitGroup, engine *html.Engine
|
|||||||
}))
|
}))
|
||||||
log.Printf("Using proxy: %s", config.Conf.Proxy)
|
log.Printf("Using proxy: %s", config.Conf.Proxy)
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
routes.RegisterRoutes(app)
|
routes.RegisterRoutes(app)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user