Set instance static/uploads to be outside of application directory in release config
authorrinpatch <rinpatch@sdf.org>
Thu, 13 Jun 2019 22:38:32 +0000 (01:38 +0300)
committerrinpatch <rinpatch@sdf.org>
Thu, 13 Jun 2019 22:42:56 +0000 (01:42 +0300)
In case of releases the application directory changes with each version
so the contents will not be accessible

config/releases.exs

index f8494dd345c47296a258463e02baaced86c3efbb..98c5ceccd54a5501dfefcd8a845d148aedca390f 100644 (file)
@@ -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