config.exs 1011 B

12345678910111213141516171819202122232425262728293031
  1. # This file is responsible for configuring your application
  2. # and its dependencies with the aid of the Mix.Config module.
  3. #
  4. # This configuration file is loaded before any dependency and
  5. # is restricted to this project.
  6. # General application configuration
  7. import Config
  8. config :toy,
  9. ecto_repos: [Toy.Repo]
  10. # Configures the endpoint
  11. config :toy, ToyWeb.Endpoint,
  12. url: [host: "localhost"],
  13. secret_key_base: "fMJMY033bh8G6zjNAItIHEAbIp4VNB3XtUiftPhmnguMRsW3Jvs63KjPbKntzRrc",
  14. render_errors: [view: ToyWeb.ErrorView, accepts: ~w(html json), layout: false],
  15. pubsub_server: Toy.PubSub,
  16. live_view: [signing_salt: "Mxbow74y"]
  17. # Configures Elixir's Logger
  18. config :logger, :console,
  19. format: "$time $metadata[$level] $message\n",
  20. metadata: [:request_id]
  21. # Use Jason for JSON parsing in Phoenix
  22. config :phoenix, :json_library, Jason
  23. # Import environment specific config. This must remain at the bottom
  24. # of this file so it overrides the configuration defined above.
  25. import_config "#{config_env()}.exs"