mirror of
https://github.com/ash-project/ash_hq.git
synced 2024-09-19 12:53:49 +12:00
fix: use option style required by ash oban (for now)
This commit is contained in:
parent
6328a0cd30
commit
1c5524cc14
1 changed files with 11 additions and 9 deletions
|
@ -41,7 +41,7 @@ config :nostrum,
|
||||||
config :ash_hq, Oban,
|
config :ash_hq, Oban,
|
||||||
repo: AshHq.Repo,
|
repo: AshHq.Repo,
|
||||||
plugins: [
|
plugins: [
|
||||||
Oban.Plugins.Pruner,
|
{Oban.Plugins.Pruner, []},
|
||||||
{Oban.Plugins.Cron, crontab: []}
|
{Oban.Plugins.Cron, crontab: []}
|
||||||
],
|
],
|
||||||
queues: [importer: [limit: 1, paused: not (periodic_imports? || config_env() == :prod)]]
|
queues: [importer: [limit: 1, paused: not (periodic_imports? || config_env() == :prod)]]
|
||||||
|
@ -96,12 +96,14 @@ if config_env() == :prod do
|
||||||
config :ash_hq, AshHqWeb.Endpoint,
|
config :ash_hq, AshHqWeb.Endpoint,
|
||||||
server: true,
|
server: true,
|
||||||
url: [host: host, port: 80],
|
url: [host: host, port: 80],
|
||||||
check_origin: [
|
check_origin:
|
||||||
|
[
|
||||||
"http://#{host}",
|
"http://#{host}",
|
||||||
"https://#{host}",
|
"https://#{host}",
|
||||||
"http://www.#{host}",
|
"http://www.#{host}",
|
||||||
"https://www.#{host}"
|
"https://www.#{host}"
|
||||||
] |> Enum.flat_map(fn host ->
|
]
|
||||||
|
|> Enum.flat_map(fn host ->
|
||||||
[host, String.replace(host, ~r/\.org$/, ".com")]
|
[host, String.replace(host, ~r/\.org$/, ".com")]
|
||||||
end),
|
end),
|
||||||
http: [
|
http: [
|
||||||
|
|
Loading…
Reference in a new issue