FEATURE: Make the multisite config path configurable (#14308)

FEATURE: Make the multisite config path configurable (#14308)

diff --git a/Gemfile.lock b/Gemfile.lock
index 152aabb..0dfe1ff 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -323,7 +323,7 @@ GEM
       activerecord (~> 6.0)
       concurrent-ruby
       railties (~> 6.0)
-    rails_multisite (3.0.0)
+    rails_multisite (3.1.0)
       activerecord (> 5.0, < 7)
       railties (> 5.0, < 7)
     railties (6.1.4.1)
diff --git a/config/application.rb b/config/application.rb
index 89f709c..cdd676e 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -99,6 +99,8 @@ module Discourse
     config.skip_multisite_middleware = true
     config.skip_rails_failover_active_record_middleware = true
 
+    config.multisite_config_path = File.absolute_path(GlobalSetting.multisite_config_path, Rails.root)
+
     # Disable so this is only run manually
     # we may want to change this later on
     # issue is image_optim crashes on missing dependencies
diff --git a/config/discourse_defaults.conf b/config/discourse_defaults.conf
index e278d79..eeb7412 100644
--- a/config/discourse_defaults.conf
+++ b/config/discourse_defaults.conf
@@ -336,3 +336,6 @@ max_digests_enqueued_per_30_mins_per_site = 10000
 # This cluster name can be passed to the /srv/status route to verify
 # the application cluster is the same one you are expecting
 cluster_name =
+
+# The YAML file used to configure multisite clusters
+multisite_config_path = config/multisite.yml

GitHub sha: ceb234c2e9b87db11be5033aeac6ce477c63e5cb

This commit appears in #14308 which was approved by eviltrout. It was merged by danielwaterworth.