Commit a31de3c7 authored by Pavel Shutsin's avatar Pavel Shutsin

Add docker.for.mac.localhost to allowed hosts for dev

This setting will allow developers to run docker containers which
need to hit API on rails part outside of docker.
parent 2ebb8f22
......@@ -8,7 +8,7 @@ if Gitlab.config.gitlab.allowed_hosts.present?
end
if Rails.env.development?
Rails.application.config.hosts += [Gitlab.config.gitlab.host, 'unix', 'host.docker.internal']
Rails.application.config.hosts += [Gitlab.config.gitlab.host, 'unix', 'host.docker.internal', 'docker.for.mac.localhost']
if ENV['RAILS_HOSTS']
additional_hosts = ENV['RAILS_HOSTS'].split(',').select(&:presence)
......
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