debian-mirror-gitlab/config/initializers/rails_host_authorization.rb
2020-04-22 19:07:51 +05:30

12 lines
347 B
Ruby

# frozen_string_literal: true
# This file requires config/initializers/1_settings.rb
if Rails.env.development?
Rails.application.config.hosts += [Gitlab.config.gitlab.host, 'unix']
if ENV['RAILS_HOSTS']
additional_hosts = ENV['RAILS_HOSTS'].split(',').select(&:presence)
Rails.application.config.hosts += additional_hosts
end
end