Skip to content

Commit 2b08119

Browse files
committed
Sort runtime config.
1 parent a090459 commit 2b08119

File tree

1 file changed

+2
-25
lines changed

1 file changed

+2
-25
lines changed

config/runtime.exs

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -106,34 +106,11 @@ if config_env() == :prod do
106106
#
107107
# Check `Plug.SSL` for all available options in `force_ssl`.
108108

109-
# TODO: Switch Postmark to this when we get our first paid customer
110109
if config_env() == :prod or config_env() == :dev do
111110
## Configuring the mailer
112-
#
113-
# See https://hexdocs.pm/swoosh/Swoosh.html#module-installation for details.
114-
# In production you need to configure the mailer to use a different adapter.
115-
# Also, you may need to configure the Swoosh API client of your choice if you
116-
# are not using SMTP. Here is an example of the configuration:
117-
#
118-
# config :sentrypeer, Sentrypeer.Mailer,
119-
# adapter: Swoosh.Adapters.Postmark,
120-
# api_key: System.get_env("POSTMARK_API_KEY")
121-
#
122-
#
123-
# For this example you need include a HTTP client required by Swoosh API client.
124-
# Swoosh supports Hackney and Finch out of the box:
125-
#
126-
# config :swoosh, :api_client, Swoosh.ApiClient.Finch
127111
config :sentrypeer, Sentrypeer.Mailer,
128-
adapter: Swoosh.Adapters.SMTP,
129-
relay: System.get_env("SENTRYPEER_SMTP_RELAY"),
130-
username: System.get_env("SENTRYPEER_SMTP_USERNAME"),
131-
password: System.get_env("SENTRYPEER_SMTP_PASSWORD"),
132-
tls: :always,
133-
auth: :always,
134-
port: System.get_env("SENTRYPEER_SMTP_PORT"),
135-
retries: 2,
136-
no_mx_lookups: false
112+
adapter: Swoosh.Adapters.Sendgrid,
113+
api_key: System.get_env("SENTRYPEER_SENDGRID_API_KEY")
137114
end
138115

139116
# Stripe

0 commit comments

Comments
 (0)