1# This file is responsible for configuring your application
2# and its dependencies with the aid of the Config module.
3#
4# This configuration file is loaded before any dependency and
5# is restricted to this project.
6
7# General application configuration
8import Config
9
10config :comet,
11 ecto_repos: [Comet.Repo],
12 generators: [timestamp_type: :utc_datetime, binary_id: true]
13
14config :comet, Comet.Repo, migration_primary_key: [name: :id, type: :binary_id]
15
16# Configures the endpoint
17config :comet, CometWeb.Endpoint,
18 url: [host: "localhost"],
19 adapter: Bandit.PhoenixAdapter,
20 render_errors: [
21 formats: [json: CometWeb.ErrorJSON],
22 layout: false
23 ],
24 pubsub_server: Comet.PubSub,
25 live_view: [signing_salt: "oq2xYeBj"]
26
27# Configures Elixir's Logger
28config :logger, :console,
29 format: "$time $metadata[$level] $message\n",
30 metadata: [:request_id]
31
32# Use Jason for JSON parsing in Phoenix
33config :phoenix, :json_library, Jason
34
35# Import environment specific config. This must remain at the bottom
36# of this file so it overrides the configuration defined above.
37import_config "#{config_env()}.exs"