Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
841B

  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 :pleroma, :modules, runtime_dir: "/var/lib/pleroma/modules"
  5. config_path = System.get_env("PLEROMA_CONFIG_PATH") || "/etc/pleroma/config.exs"
  6. config :pleroma, release: true, config_path: config_path
  7. if File.exists?(config_path) do
  8. import_config config_path
  9. else
  10. warning = [
  11. IO.ANSI.red(),
  12. IO.ANSI.bright(),
  13. "!!! #{config_path} not found! Please ensure it exists and that PLEROMA_CONFIG_PATH is unset or points to an existing file",
  14. IO.ANSI.reset()
  15. ]
  16. IO.puts(warning)
  17. end
  18. exported_config =
  19. config_path
  20. |> Path.dirname()
  21. |> Path.join("prod.exported_from_db.secret.exs")
  22. if File.exists?(exported_config) do
  23. import_config exported_config
  24. end