FEATURE: allow users to specify a second hostname if needed

(very rarely needed feature, mostly for multisite and origin pull cdns)
This commit is contained in:
Sam 2015-07-23 15:22:54 +10:00
parent 78bd4508d1
commit c056c3ba7e
2 changed files with 7 additions and 1 deletions

View File

@ -23,7 +23,10 @@ class GlobalSetting
hash[s] = val
end
end
hash["host_names"] = [ hostname ]
hostnames = [ hostname ]
hostnames << hostname2 if hostname2.present?
hash["host_names"] = hostnames
hash["database"] = db_name
hash["prepared_statements"] = !!self.db_prepared_statements

View File

@ -46,6 +46,9 @@ db_prepared_statements = true
# hostname running the forum
hostname = "www.example.com"
# backup hostname
hostname2 =
# address of smtp server used to send emails
smtp_address =