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:
Ahmad Farhat
2020-05-08 15:25:24 -04:00
committed by GitHub
parent 0806bf4e58
commit f47d68ea18
2 changed files with 4 additions and 14 deletions

View File

@ -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