From faf8d0af70c1b3329a60ac2bc3f1af6df727f848 Mon Sep 17 00:00:00 2001 From: James Edington Date: Mon, 14 Mar 2022 11:55:41 -0500 Subject: [PATCH] Move secret.exs inside docker volume --- config/docker.exs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/docker.exs b/config/docker.exs index 25cb5ac91..6894c0412 100644 --- a/config/docker.exs +++ b/config/docker.exs @@ -29,7 +29,7 @@ config :pleroma, Pleroma.Uploaders.Local, uploads: "/var/lib/pleroma/uploads" config :pleroma, configurable_from_database: true # We can't store the secrets in this file, since this is baked into the docker image -if not File.exists?("/var/lib/pleroma/secret.exs") do +if not File.exists?("/var/lib/pleroma/config/secret.exs") do secret = :crypto.strong_rand_bytes(64) |> Base.encode64() |> binary_part(0, 64) signing_salt = :crypto.strong_rand_bytes(8) |> Base.encode64() |> binary_part(0, 8) {web_push_public_key, web_push_private_key} = :crypto.generate_key(:ecdh, :prime256v1) @@ -53,10 +53,10 @@ if not File.exists?("/var/lib/pleroma/secret.exs") do web_push_private_key: Base.url_encode64(web_push_private_key, padding: false) ) - File.write("/var/lib/pleroma/secret.exs", secret_file) + File.write("/var/lib/pleroma/config/secret.exs", secret_file) end -import_config("/var/lib/pleroma/secret.exs") +import_config("/var/lib/pleroma/config/secret.exs") # For additional user config if File.exists?("/var/lib/pleroma/config.exs"),