Skip to content

Commit 00556de

Browse files
committed
prepare prod deployment
1 parent ec36981 commit 00556de

File tree

3 files changed

+5
-16
lines changed

3 files changed

+5
-16
lines changed

config/prod.exs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ config :algora, AlgoraWeb.Endpoint, cache_static_manifest: "priv/static/cache_ma
1010
# Configures Swoosh API Client
1111
config :swoosh, api_client: Swoosh.ApiClient.Finch, finch_name: Algora.Finch
1212

13-
# TODO: Disable Swoosh Local Memory Storage
14-
config :swoosh, local: true
13+
# Disable Swoosh Local Memory Storage
14+
config :swoosh, local: false
1515

1616
config :logger,
1717
format: {LogfmtEx, :format},
@@ -22,11 +22,6 @@ config :algora,
2222
swift_mode: true,
2323
auto_start_pollers: true
2424

25-
# TODO: remove after migration
26-
config :algora,
27-
dev_routes: true,
28-
require_admin_for_mailbox: true
29-
3025
config :algora, AlgoraWeb.OGImageController, max_age: 600
3126

3227
# Runtime production configuration, including reading

config/runtime.exs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,9 @@ if config_env() == :prod do
131131
# Check `Plug.SSL` for all available options in `force_ssl`.
132132

133133
# TODO: remove after migration
134-
if false do
135-
config :algora, Algora.Mailer,
136-
adapter: Swoosh.Adapters.Sendgrid,
137-
api_key: System.get_env("SENDGRID_API_KEY")
138-
end
134+
config :algora, Algora.Mailer,
135+
adapter: Swoosh.Adapters.Sendgrid,
136+
api_key: System.get_env("SENDGRID_API_KEY")
139137

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

lib/algora_web/router.ex

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,6 @@ defmodule AlgoraWeb.Router do
203203
pipe_through :browser
204204

205205
scope "/" do
206-
if Application.compile_env(:algora, :require_admin_for_mailbox) do
207-
pipe_through :require_authenticated_admin
208-
end
209-
210206
forward "/mailbox", Plug.Swoosh.MailboxPreview
211207
end
212208
end

0 commit comments

Comments
 (0)