From 1476816418635c2e568ee299523bfd2172160b7c Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Tue, 7 Jan 2025 16:04:03 +0100 Subject: [PATCH] Update production environment --- config/environments/production.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 8484021a..4e8f5661 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -103,8 +103,8 @@ Rails.application.configure do # ] # Skip DNS rebinding protection for the default health check endpoint. # config.host_authorization = { exclude: ->(request) { request.path == "/up" } } - config.hosts << ENV.fetch('APPLICATION_HOST', 'localhost') + hosts = ENV.fetch('APPLICATION_HOSTS', 'localhost').split(',') - hosts = ENV.fetch('APPLICATION_HOSTS', 'localhost') - config.hosts.concat(hosts.split(',')) if hosts.present? + config.action_mailer.default_url_options = { host: hosts.first, port: 3000 } + config.hosts.concat(hosts) if hosts.present? end