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
8
import Config
9
10
config :pipa,
11
ecto_repos: [Pipa.Repo],
12
generators: [timestamp_type: :utc_datetime_usec]
13
14
# Configures the endpoint
15
config :pipa, PipaWeb.Endpoint,
16
url: [host: "localhost"],
17
adapter: Bandit.PhoenixAdapter,
18
render_errors: [
19
formats: [html: PipaWeb.ErrorHTML, json: PipaWeb.ErrorJSON],
20
layout: false
21
],
22
pubsub_server: Pipa.PubSub,
23
live_view: [signing_salt: "GTE9V0Jr"]
24
25
config :pipa, Pipa.Mailer, adapter: Swoosh.Adapters.Local
26
27
config :esbuild,
28
version: "0.25.5",
29
path: System.get_env("PIPA_ESBUILD"),
30
version_check: true,
31
pipa: [
32
args:
33
~w(js/app.js --bundle --target=es2022 --outdir=../priv/static/assets/js --external:/fonts/* --external:/images/* --alias:@=.),
34
cd: Path.expand("../assets", __DIR__),
35
env: %{"NODE_PATH" => [Path.expand("../deps", __DIR__), Mix.Project.build_path()]}
36
]
37
38
# Configures Elixir's Logger
39
config :logger, :default_formatter,
40
format: "$time $metadata[$level] $message\n",
41
metadata: [:request_id]
42
43
# Use Jason for JSON parsing in Phoenix
44
config :phoenix, :json_library, Jason
45
46
config :tzdata, :autoupdate, :disabled
47
config :tzdata, :data_dir, Path.expand("../priv/tzdata", __DIR__)
48
49
config :elixir, :time_zone_database, Tzdata.TimeZoneDatabase
50
51
config :exqlite, force_build: true
52
53
# Import environment specific config. This must remain at the bottom
54
# of this file so it overrides the configuration defined above.
55
import_config "#{config_env()}.exs"
56