Skip to content

A platform for community discussion. Free, open, simple.

FIX: CDN_URL hostname should be in GlobalSetting.hostnames

Michael Brown976d6b290cb6
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