Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
539B

  1. import Config
  2. config :pleroma, :instance, static_dir: "/var/lib/pleroma/static"
  3. config :pleroma, Pleroma.Uploaders.Local, uploads: "/var/lib/pleroma/uploads"
  4. config_path = System.get_env("PLEROMA_CONFIG_PATH") || "/etc/pleroma/config.exs"
  5. if File.exists?(config_path) do
  6. import_config config_path
  7. else
  8. warning = [
  9. IO.ANSI.red(),
  10. IO.ANSI.bright(),
  11. "!!! #{config_path} not found! Please ensure it exists and that PLEROMA_CONFIG_PATH is unset or points to an existing file",
  12. IO.ANSI.reset()
  13. ]
  14. IO.puts(warning)
  15. end