forked from External/greenlight
GRN2-xx: Allow SAFE_HOSTS to be left blank (#1545)
* Allow SAFE_HOSTS to be left blank * a different approach Co-authored-by: jfederico <jesus@123it.ca>
This commit is contained in:
@ -155,4 +155,6 @@ Rails.application.configure do
|
||||
|
||||
# Set the relative url root for deployment to a subdirectory.
|
||||
config.relative_url_root = ENV['RELATIVE_URL_ROOT'] || "/b" if ENV['RELATIVE_URL_ROOT'] != "/"
|
||||
|
||||
config.hosts = ENV['SAFE_HOSTS'].presence || nil
|
||||
end
|
||||
|
Reference in New Issue
Block a user