diff --git a/config/prod.exs b/config/prod.exs index 968f596e0..4558e162e 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -63,8 +63,8 @@ # Finally import the config/prod.secret.exs # which should be versioned separately. -if File.exists?("./config/prod.secret.exs") do - import_config "prod.secret.exs" +if File.exists?(System.get_env("PROD_SECRET_FILE", "./config/prod.secret.exs")) do + import_config System.get_env("PROD_SECRET_FILE", "./config/prod.secret.exs") else "`config/prod.secret.exs` not found. You may want to create one by running `mix pleroma.instance gen`" |> IO.warn([])