1
import Config
2
3
# Configure your database
4
config :pipa, Pipa.Repo, database: "db/dev.db"
5
6
# For development, we disable any cache and enable
7
# debugging and code reloading.
8
#
9
# The watchers configuration can be used to run external
10
# watchers to your application. For example, we can use it
11
# to bundle .js and .css sources.
12
config :pipa, PipaWeb.Endpoint,
13
# Binding to loopback ipv4 address prevents access from other machines.
14
# Change to `ip: {0, 0, 0, 0}` to allow access from other machines.
15
http: [ip: {127, 0, 0, 1}, port: String.to_integer(System.get_env("PORT") || "4000")],
16
check_origin: false,
17
code_reloader: true,
18
debug_errors: true,
19
secret_key_base: "gyi9ozqQce/TCTY6b5+5VKUCWMb8dVEOzoMmTe4GaGqDsV+d1yYXwWd3ET3ks+qo",
20
watchers: [
21
esbuild: {Esbuild, :install_and_run, [:pipa, ~w(--sourcemap=inline --watch)]}
22
]
23
24
config :pipa, PipaApi, key: "pipapeep"
25
26
# ## SSL Support
27
#
28
# In order to use HTTPS in development, a self-signed
29
# certificate can be generated by running the following
30
# Mix task:
31
#
32
# mix phx.gen.cert
33
#
34
# Run `mix help phx.gen.cert` for more information.
35
#
36
# The `http:` config above can be replaced with:
37
#
38
# https: [
39
# port: 4001,
40
# cipher_suite: :strong,
41
# keyfile: "priv/cert/selfsigned_key.pem",
42
# certfile: "priv/cert/selfsigned.pem"
43
# ],
44
#
45
# If desired, both `http:` and `https:` keys can be
46
# configured to run both http and https servers on
47
# different ports.
48
49
# Watch static and templates for browser reloading.
50
config :pipa, PipaWeb.Endpoint,
51
live_reload: [
52
web_console_logger: true,
53
patterns: [
54
~r"priv/static/(?!uploads/).*(js|css|png|jpeg|jpg|gif|svg)$",
55
~r"priv/gettext/.*(po)$",
56
~r"lib/pipa_web/(?:controllers|live|components|router)/?.*\.(ex|heex)$"
57
]
58
]
59
60
config :pipa, :uploads_directory, Path.expand("../storage", __DIR__)
61
62
# Enable dev routes for dashboard and mailbox
63
config :pipa, dev_routes: true
64
65
# Do not include metadata nor timestamps in development logs
66
config :logger, :default_formatter, format: "[$level] $message\n"
67
68
# Set a higher stacktrace during development. Avoid configuring such
69
# in production as building large stacktraces may be expensive.
70
config :phoenix, :stacktrace_depth, 20
71
72
# Initialize plugs at runtime for faster development compilation
73
config :phoenix, :plug_init_mode, :runtime
74
75
config :phoenix_live_view,
76
# Include debug annotations and locations in rendered markup.
77
# Changing this configuration will require mix clean and a full recompile.
78
debug_heex_annotations: true,
79
debug_attributes: true,
80
# Enable helpful, but potentially expensive runtime checks
81
enable_expensive_runtime_checks: true
82
83
# Disable swoosh api client as it is only required for production adapters.
84
config :swoosh, :api_client, false
85