2020-01-30 10:09:15 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
# This file requires config/initializers/1_settings.rb
|
|
|
|
|
|
|
|
if Rails.env.development?
|
2020-08-18 11:10:33 -04:00
|
|
|
Rails.application.config.hosts += [Gitlab.config.gitlab.host, 'unix', 'host.docker.internal']
|
2020-03-27 08:07:43 -04:00
|
|
|
|
|
|
|
if ENV['RAILS_HOSTS']
|
|
|
|
additional_hosts = ENV['RAILS_HOSTS'].split(',').select(&:presence)
|
|
|
|
Rails.application.config.hosts += additional_hosts
|
|
|
|
end
|
2020-01-30 10:09:15 -05:00
|
|
|
end
|