-
Notifications
You must be signed in to change notification settings - Fork 128
Expand file tree
/
Copy pathprod.exs
More file actions
35 lines (26 loc) · 1.07 KB
/
prod.exs
File metadata and controls
35 lines (26 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import Config
# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix assets.deploy` task,
# which you should run after static files are built and
# before starting your production server.
self_hosted = System.get_env("SELF_HOSTED", "0") in ~w(1 true)
# Empty string DSN crashes Sentry — treat "" as nil for self-hosted builds
sentry_dsn = case System.get_env("SENTRY_DSN") do
"" -> nil
dsn -> dsn
end
config :sentry,
dsn: sentry_dsn,
release: System.get_env("RELEASE_VERSION")
config :sequin, Sequin.ConsoleLogger, drop_metadata_keys: [:mfa]
config :sequin,
self_hosted: self_hosted,
portal_hostname: "portal.sequin.local",
release_version: System.get_env("RELEASE_VERSION")
# Configures Swoosh API Client
config :swoosh, Sequin.Mailer, adapter: Swoosh.Adapters.Sendgrid
# Disable Swoosh Local Memory Storage
config :swoosh, local: false, api_client: Swoosh.ApiClient.Req
# Runtime production configuration, including reading
# of environment variables, is done on config/runtime.exs.