Skip to content

Commit

Permalink
fix: use option style required by ash oban (for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Apr 29, 2024
1 parent 6328a0c commit 1c5524c
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ config :nostrum,
config :ash_hq, Oban,
repo: AshHq.Repo,
plugins: [
Oban.Plugins.Pruner,
{Oban.Plugins.Pruner, []},
{Oban.Plugins.Cron, crontab: []}
],
queues: [importer: [limit: 1, paused: not (periodic_imports? || config_env() == :prod)]]
Expand Down Expand Up @@ -96,14 +96,16 @@ if config_env() == :prod do
config :ash_hq, AshHqWeb.Endpoint,
server: true,
url: [host: host, port: 80],
check_origin: [
"http://#{host}",
"https://#{host}",
"http://www.#{host}",
"https://www.#{host}"
] |> Enum.flat_map(fn host ->
[host, String.replace(host, ~r/\.org$/, ".com")]
end),
check_origin:
[
"http://#{host}",
"https://#{host}",
"http://www.#{host}",
"https://www.#{host}"
]
|> Enum.flat_map(fn host ->
[host, String.replace(host, ~r/\.org$/, ".com")]
end),
http: [
# Enable IPv6 and bind on all interfaces.
# Set it to {0, 0, 0, 0, 0, 0, 0, 1} for local network only access.
Expand Down

0 comments on commit 1c5524c

Please sign in to comment.