Skip to content

Commit 2cf6663

Browse files
authored
use ALLOWED_HOSTS env var and default to empty hosts (#129)
1 parent 3567775 commit 2cf6663

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/environments/production.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,5 @@
111111
# config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver
112112
# config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
113113

114-
config.hosts = ENV['OOD_PUN_RAILS_CONFIG_HOSTS'].nil? ? nil : ENV['OOD_PUN_RAILS_CONFIG_HOSTS'].split(',')
114+
config.hosts = ENV['ALLOWED_HOSTS'].nil? ? [] : ENV['ALLOWED_HOSTS'].split(',')
115115
end

0 commit comments

Comments
 (0)