Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions config/prod.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ config :algora, AlgoraWeb.Endpoint, cache_static_manifest: "priv/static/cache_ma
# Configures Swoosh API Client
config :swoosh, api_client: Swoosh.ApiClient.Finch, finch_name: Algora.Finch

# TODO: Disable Swoosh Local Memory Storage
config :swoosh, local: true
# Disable Swoosh Local Memory Storage
config :swoosh, local: false

config :logger,
format: {LogfmtEx, :format},
Expand All @@ -22,10 +22,5 @@ config :algora,
swift_mode: true,
auto_start_pollers: true

# TODO: remove after migration
config :algora,
dev_routes: true,
require_admin_for_mailbox: true

# Runtime production configuration, including reading
# of environment variables, is done on config/runtime.exs.
9 changes: 3 additions & 6 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,9 @@ if config_env() == :prod do
#
# Check `Plug.SSL` for all available options in `force_ssl`.

# TODO: remove after migration
if false do
config :algora, Algora.Mailer,
adapter: Swoosh.Adapters.Sendgrid,
api_key: System.get_env("SENDGRID_API_KEY")
end
config :algora, Algora.Mailer,
adapter: Swoosh.Adapters.Sendgrid,
api_key: System.fetch_env!("SENDGRID_API_KEY")

config :swoosh, :api_client, Swoosh.ApiClient.Finch

Expand Down
4 changes: 0 additions & 4 deletions lib/algora_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,6 @@ defmodule AlgoraWeb.Router do
pipe_through :browser

scope "/" do
if Application.compile_env(:algora, :require_admin_for_mailbox) do
pipe_through :require_authenticated_admin
end

forward "/mailbox", Plug.Swoosh.MailboxPreview
end
end
Expand Down