Update api.go

This commit is contained in:
mycodedoesnotcompile2 2025-12-13 12:00:48 +00:00 committed by GitHub
parent 3e95bb581e
commit 7d6e0c0aa8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)