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-02-05 22:08:47 -05:00
|
|
|
Rails.application.config.hosts += [Gitlab.config.gitlab.host, 'unix']
|
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
|