diff options
author | rinpatch <rinpatch@sdf.org> | 2019-06-14 01:38:32 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-06-14 01:42:56 +0300 |
commit | ac3d43e6201a31d274f89185de950e787f2e9708 (patch) | |
tree | c80f83eb6ae4ae1880c4aaf36fb3d89811dc96d8 | |
parent | da4af72180cca2a7b7c4f4a9e8066b77c67586a0 (diff) | |
download | pleroma-ac3d43e6201a31d274f89185de950e787f2e9708.tar.gz |
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
-rw-r--r-- | config/releases.exs | 3 |
1 files changed, 3 insertions, 0 deletions
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 |