mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 08:13:51 +08:00
FEATURE: Make the multisite config path configurable (#14308)
This commit is contained in:
parent
33fb3b7ec8
commit
ceb234c2e9
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user