From dd17e0353a9efd66b19803d066ec45fa7d155886 Mon Sep 17 00:00:00 2001 From: Kegan Myers Date: Sun, 23 Jul 2023 14:35:54 -0500 Subject: [PATCH] allow specifying secret file location --- config/prod.exs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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([])