Skip to content

Commit

Permalink
Sort runtime config.
Browse files Browse the repository at this point in the history
  • Loading branch information
ghenry committed Dec 6, 2024
1 parent a090459 commit 2b08119
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -106,34 +106,11 @@ if config_env() == :prod do
#
# Check `Plug.SSL` for all available options in `force_ssl`.

# TODO: Switch Postmark to this when we get our first paid customer
if config_env() == :prod or config_env() == :dev do
## Configuring the mailer
#
# See https://hexdocs.pm/swoosh/Swoosh.html#module-installation for details.
# In production you need to configure the mailer to use a different adapter.
# Also, you may need to configure the Swoosh API client of your choice if you
# are not using SMTP. Here is an example of the configuration:
#
# config :sentrypeer, Sentrypeer.Mailer,
# adapter: Swoosh.Adapters.Postmark,
# api_key: System.get_env("POSTMARK_API_KEY")
#
#
# For this example you need include a HTTP client required by Swoosh API client.
# Swoosh supports Hackney and Finch out of the box:
#
# config :swoosh, :api_client, Swoosh.ApiClient.Finch
config :sentrypeer, Sentrypeer.Mailer,
adapter: Swoosh.Adapters.SMTP,
relay: System.get_env("SENTRYPEER_SMTP_RELAY"),
username: System.get_env("SENTRYPEER_SMTP_USERNAME"),
password: System.get_env("SENTRYPEER_SMTP_PASSWORD"),
tls: :always,
auth: :always,
port: System.get_env("SENTRYPEER_SMTP_PORT"),
retries: 2,
no_mx_lookups: false
adapter: Swoosh.Adapters.Sendgrid,
api_key: System.get_env("SENTRYPEER_SENDGRID_API_KEY")
end

# Stripe
Expand Down

0 comments on commit 2b08119

Please sign in to comment.