From 976d6b290cb66110b5af80c58ef113e297aad0d1 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 27 Mar 2018 15:20:22 -0400 Subject: [PATCH] FIX: CDN_URL hostname should be in GlobalSetting.hostnames --- app/models/global_setting.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/global_setting.rb b/app/models/global_setting.rb index 3b747df9a85..f0fb74b5a38 100644 --- a/app/models/global_setting.rb +++ b/app/models/global_setting.rb @@ -117,6 +117,8 @@ class GlobalSetting hostnames = [ hostname ] hostnames << backup_hostname if backup_hostname.present? + hostnames << URI.parse(cdn_url).host if cdn_url.present? + hash["host_names"] = hostnames hash["database"] = db_name