Use config to control loading of custom modules

This commit is contained in:
Mark Felder 2024-01-20 18:22:49 -05:00
commit c7eda0b24a
5 changed files with 26 additions and 21 deletions

View file

@ -905,6 +905,8 @@ config :pleroma, Pleroma.Search.Meilisearch,
initial_indexing_chunk_size: 100_000
config :pleroma, Pleroma.Application,
internal_fetch: true,
load_custom_modules: true,
max_restarts: 3
# Import environment specific config. This must remain at the bottom

View file

@ -162,7 +162,10 @@ peer_module =
config :pleroma, Pleroma.Cluster, peer_module: peer_module
config :pleroma, Pleroma.Application, max_restarts: 100
config :pleroma, Pleroma.Application,
internal_fetch: false,
load_custom_modules: false,
max_restarts: 100
if File.exists?("./config/test.secret.exs") do
import_config "test.secret.exs"