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.

63 lines
1.9KB

  1. use Mix.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. secure_cookie_flag: false,
  15. debug_errors: true,
  16. code_reloader: true,
  17. check_origin: false,
  18. watchers: [],
  19. secure_cookie_flag: false
  20. config :pleroma, Pleroma.Mailer, adapter: Swoosh.Adapters.Local
  21. # ## SSL Support
  22. #
  23. # In order to use HTTPS in development, a self-signed
  24. # certificate can be generated by running the following
  25. # command from your terminal:
  26. #
  27. # 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
  28. #
  29. # The `http:` config above can be replaced with:
  30. #
  31. # https: [port: 4000, keyfile: "priv/server.key", certfile: "priv/server.pem"],
  32. #
  33. # If desired, both `http:` and `https:` keys can be
  34. # configured to run both http and https servers on
  35. # different ports.
  36. # Do not include metadata nor timestamps in development logs
  37. config :logger, :console, format: "[$level] $message\n"
  38. # Set a higher stacktrace during development. Avoid configuring such
  39. # in production as building large stacktraces may be expensive.
  40. config :phoenix, :stacktrace_depth, 20
  41. # Configure your database
  42. config :pleroma, Pleroma.Repo,
  43. adapter: Ecto.Adapters.Postgres,
  44. username: "postgres",
  45. password: "postgres",
  46. database: "pleroma_dev",
  47. hostname: "localhost",
  48. pool_size: 10
  49. if File.exists?("./config/dev.secret.exs") do
  50. import_config "dev.secret.exs"
  51. else
  52. IO.puts(
  53. "!!! RUNNING IN LOCALHOST DEV MODE! !!!\nFEDERATION WON'T WORK UNTIL YOU CONFIGURE A dev.secret.exs"
  54. )
  55. end