Commit dbcc7e4e authored by Sean McGivern's avatar Sean McGivern

Merge branch 'sh-fix-webpack-https' into 'master'

Fix Webpack not working over HTTPS in development

See merge request gitlab-org/gitlab!43197
parents 9300f792 8f580fd9
...@@ -25,10 +25,12 @@ if app.config.public_file_server.enabled ...@@ -25,10 +25,12 @@ if app.config.public_file_server.enabled
} }
if Rails.env.development? if Rails.env.development?
# /assets are proxied through a Rails middlware to the Webpack
# server, so we have to use the local Rails settings.
settings.merge!( settings.merge!(
host: Gitlab.config.gitlab.host, host: Gitlab.config.gitlab.host,
port: Gitlab.config.gitlab.port, port: Gitlab.config.gitlab.port,
https: false https: Gitlab.config.gitlab.https
) )
app.config.middleware.insert_before( app.config.middleware.insert_before(
Gitlab::Middleware::Static, Gitlab::Middleware::Static,
......
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