mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-23 12:35:08 +01:00
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
This commit is contained in:
parent
da4af72180
commit
ac3d43e620
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user