Merge pull request #5711 from Supermathie/learn_cdn_url_hostname

FIX: CDN_URL hostname should be in GlobalSetting.hostnames
This commit is contained in:
Guo Xiang Tan 2018-04-02 16:39:24 +08:00 committed by GitHub
commit d2a8f40fb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

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