Commit 167eeb4a authored by Imre Farkas's avatar Imre Farkas

Merge branch 'mg-webpack-middleware-pass-host' into 'master'

Pass the HTTP host header to webpack-dev-server

See merge request gitlab-org/gitlab!46753
parents 37bfcc1e be00a306
...@@ -19,6 +19,7 @@ module Gitlab ...@@ -19,6 +19,7 @@ module Gitlab
# disable SSL check since any cert used here will likely be self-signed # disable SSL check since any cert used here will likely be self-signed
def rewrite_env(env) def rewrite_env(env)
env["rack.ssl_verify_none"] = true env["rack.ssl_verify_none"] = true
env["HTTP_HOST"] = @proxy_host
env env
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment