New: Proxy all the requests to the graphql server

This commit is contained in:
2023-10-11 11:26:55 +01:00
parent dd25e4a4a5
commit f41b2ae46f
6 changed files with 18 additions and 10 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ func proxyTheRequest(c *fiber.Ctx) error {
InsecureSkipVerify: true,
})
err := proxy.DoRedirects(c, cfg.Server.HostGraphQL, 3)
err := proxy.DoRedirects(c, cfg.Server.HostGraphQL+c.Path(), 3)
if err != nil {
cfg.Logger.Error("Can't proxy the request", map[string]interface{}{"error": err.Error()})
cfg.Monitoring.Increment(libpack_monitoring.MetricsFailed, nil)