logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

dev.exs (2193B)


  1. import Config
  2. # For development, we disable any cache and enable
  3. # debugging and code reloading.
  4. #
  5. # The watchers configuration can be used to run external
  6. # watchers to your application. For example, we use it
  7. # with brunch.io to recompile .js and .css sources.
  8. config :pleroma, Pleroma.Web.Endpoint,
  9. http: [
  10. port: 4000
  11. ],
  12. protocol: "http",
  13. debug_errors: true,
  14. code_reloader: true,
  15. check_origin: false,
  16. watchers: [],
  17. secure_cookie_flag: false
  18. config :pleroma, Pleroma.Emails.Mailer, adapter: Swoosh.Adapters.Local
  19. # ## SSL Support
  20. #
  21. # In order to use HTTPS in development, a self-signed
  22. # certificate can be generated by running the following
  23. # command from your terminal:
  24. #
  25. # openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com" -keyout priv/server.key -out priv/server.pem
  26. #
  27. # The `http:` config above can be replaced with:
  28. #
  29. # https: [port: 4000, keyfile: "priv/server.key", certfile: "priv/server.pem"],
  30. #
  31. # If desired, both `http:` and `https:` keys can be
  32. # configured to run both http and https servers on
  33. # different ports.
  34. # Do not include timestamps in development logs
  35. config :logger, Logger.Backends.Console, format: "$metadata[$level] $message\n"
  36. # Set a higher stacktrace during development. Avoid configuring such
  37. # in production as building large stacktraces may be expensive.
  38. config :phoenix, :stacktrace_depth, 20
  39. # Configure your database
  40. config :pleroma, Pleroma.Repo,
  41. adapter: Ecto.Adapters.Postgres,
  42. username: "postgres",
  43. password: "postgres",
  44. database: "pleroma_dev",
  45. hostname: "localhost",
  46. pool_size: 10
  47. config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: true
  48. # Reduce recompilation time
  49. # https://dashbit.co/blog/speeding-up-re-compilation-of-elixir-projects
  50. config :phoenix, :plug_init_mode, :runtime
  51. if File.exists?("./config/dev.secret.exs") do
  52. import_config "dev.secret.exs"
  53. else
  54. IO.puts(
  55. :stderr,
  56. "!!! RUNNING IN LOCALHOST DEV MODE! !!!\nFEDERATION WON'T WORK UNTIL YOU CONFIGURE A dev.secret.exs"
  57. )
  58. end
  59. if File.exists?("./config/dev.exported_from_db.secret.exs"),
  60. do: import_config("dev.exported_from_db.secret.exs")