mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -23,7 +23,10 @@ class GlobalSetting
|
|||||||
hash[s] = val
|
hash[s] = val
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
hash["host_names"] = [ hostname ]
|
hostnames = [ hostname ]
|
||||||
|
hostnames << hostname2 if hostname2.present?
|
||||||
|
|
||||||
|
hash["host_names"] = hostnames
|
||||||
hash["database"] = db_name
|
hash["database"] = db_name
|
||||||
|
|
||||||
hash["prepared_statements"] = !!self.db_prepared_statements
|
hash["prepared_statements"] = !!self.db_prepared_statements
|
||||||
|
|||||||
@@ -46,6 +46,9 @@ db_prepared_statements = true
|
|||||||
# hostname running the forum
|
# hostname running the forum
|
||||||
hostname = "www.example.com"
|
hostname = "www.example.com"
|
||||||
|
|
||||||
|
# backup hostname
|
||||||
|
hostname2 =
|
||||||
|
|
||||||
# address of smtp server used to send emails
|
# address of smtp server used to send emails
|
||||||
smtp_address =
|
smtp_address =
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user