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.

71 lines
2.2KB

  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. protocol_options: [max_request_line_length: 8192, max_header_value_length: 8192]
  12. ],
  13. protocol: "http",
  14. debug_errors: true,
  15. code_reloader: true,
  16. check_origin: false,
  17. watchers: [],
  18. secure_cookie_flag: false
  19. config :pleroma, Pleroma.Emails.Mailer, adapter: Swoosh.Adapters.Local
  20. # ## SSL Support
  21. #
  22. # In order to use HTTPS in development, a self-signed
  23. # certificate can be generated by running the following
  24. # command from your terminal:
  25. #
  26. # 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
  27. #
  28. # The `http:` config above can be replaced with:
  29. #
  30. # https: [port: 4000, keyfile: "priv/server.key", certfile: "priv/server.pem"],
  31. #
  32. # If desired, both `http:` and `https:` keys can be
  33. # configured to run both http and https servers on
  34. # different ports.
  35. # Do not include metadata nor timestamps in development logs
  36. config :logger, :console, format: "[$level] $message\n"
  37. # Set a higher stacktrace during development. Avoid configuring such
  38. # in production as building large stacktraces may be expensive.
  39. config :phoenix, :stacktrace_depth, 20
  40. # Configure your database
  41. config :pleroma, Pleroma.Repo,
  42. adapter: Ecto.Adapters.Postgres,
  43. username: "postgres",
  44. password: "postgres",
  45. database: "pleroma_dev",
  46. hostname: "localhost",
  47. pool_size: 10
  48. config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: true
  49. # Reduce recompilation time
  50. # https://dashbit.co/blog/speeding-up-re-compilation-of-elixir-projects
  51. config :phoenix, :plug_init_mode, :runtime
  52. if File.exists?("./config/dev.secret.exs") do
  53. import_config "dev.secret.exs"
  54. else
  55. IO.puts(
  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")