Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ui): engine start ui #4552

Merged
merged 22 commits into from
Aug 29, 2019
Prev Previous commit
Next Next commit
cr
Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
yesnault committed Aug 27, 2019
commit cbf7c9bf7995843f787e2953705183864b98164b
3 changes: 2 additions & 1 deletion engine/ui/ui_router.go
Original file line number Diff line number Diff line change
@@ -41,7 +41,8 @@ func (s *Service) getReverseProxy(path, urlRemote string) *httputil.ReverseProxy
reqPath := strings.TrimPrefix(req.URL.Path, path)
// on proxypass /cdshooks, allow only request on /webhooks/ path
if path == "/cdshooks" && !strings.HasPrefix(reqPath, "/webhook/") {
req = &http.Request{} // return 502 bad gateway
// return 502 bad gateway
req = &http.Request{} // nolint
} else {
req.Header.Add("X-Forwarded-Host", req.Host)
req.Header.Add("X-Origin-Host", origin.Host)