From: rinpatch Date: Thu, 13 Jun 2019 22:38:32 +0000 (+0300) Subject: Set instance static/uploads to be outside of application directory in release config X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=ac3d43e6201a31d274f89185de950e787f2e9708;p=akkoma Set instance static/uploads to be outside of application directory in release config In case of releases the application directory changes with each version so the contents will not be accessible --- diff --git a/config/releases.exs b/config/releases.exs index f8494dd34..98c5ceccd 100644 --- a/config/releases.exs +++ b/config/releases.exs @@ -1,5 +1,8 @@ import Config +config :pleroma, :instance, static_dir: "/var/lib/pleroma/static" +config :pleroma, Pleroma.Uploaders.Local, uploads: "/var/lib/pleroma/uploads" + config_path = System.get_env("PLEROMA_CONFIG_PATH") || "/etc/pleroma/config.exs" if File.exists?(config_path) do