Commit 81b5c7fc authored by Tomasz Maczukin's avatar Tomasz Maczukin Committed by Kamil Trzciński

Configure additional rails hosts with env variable

parent 06fee04e
---
title: Add possibility to conigure additional rails hosts with env variable
merge_request: 28133
author:
type: other
...@@ -4,4 +4,9 @@ ...@@ -4,4 +4,9 @@
if Rails.env.development? if Rails.env.development?
Rails.application.config.hosts += [Gitlab.config.gitlab.host, 'unix'] 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 end
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