X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=config%2Freleases.exs;h=19636765f51b6381ff6e18581c50fbd204624c29;hb=4a2d7a7a5db2544ffc84e1f0eb0dc86e1cb3c32c;hp=98c5ceccd54a5501dfefcd8a845d148aedca390f;hpb=a1bbeef55c53615ccefd2676d4faa691ae30c0f8;p=akkoma diff --git a/config/releases.exs b/config/releases.exs index 98c5ceccd..19636765f 100644 --- a/config/releases.exs +++ b/config/releases.exs @@ -2,9 +2,12 @@ import Config config :pleroma, :instance, static_dir: "/var/lib/pleroma/static" config :pleroma, Pleroma.Uploaders.Local, uploads: "/var/lib/pleroma/uploads" +config :pleroma, :modules, runtime_dir: "/var/lib/pleroma/modules" config_path = System.get_env("PLEROMA_CONFIG_PATH") || "/etc/pleroma/config.exs" +config :pleroma, release: true, config_path: config_path + if File.exists?(config_path) do import_config config_path else @@ -17,3 +20,12 @@ else IO.puts(warning) end + +exported_config = + config_path + |> Path.dirname() + |> Path.join("prod.exported_from_db.secret.exs") + +if File.exists?(exported_config) do + import_config exported_config +end