diff --git a/config/config.exs b/config/config.exs index 58c5e1d..0d8feb8 100644 --- a/config/config.exs +++ b/config/config.exs @@ -31,7 +31,7 @@ config :aprs, Aprs.Mailer, adapter: Swoosh.Adapters.Local # Configure esbuild (the version is required) config :esbuild, - version: "0.14.41", + version: "0.17.11", default: [ args: ~w(js/app.js --bundle --target=es2017 --outdir=../priv/static/assets --external:/fonts/* --external:/images/*), cd: Path.expand("../assets", __DIR__), @@ -40,7 +40,7 @@ config :esbuild, # Configure tailwind (the version is required) config :tailwind, - version: "3.1.8", + version: "3.3.2", default: [ args: ~w( --config=tailwind.config.js diff --git a/config/runtime.exs b/config/runtime.exs index 9da49bd..401e843 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -28,7 +28,7 @@ if config_env() == :prod do For example: ecto://USER:PASS@HOST/DATABASE """ - maybe_ipv6 = if System.get_env("ECTO_IPV6"), do: [:inet6], else: [] + maybe_ipv6 = if System.get_env("ECTO_IPV6") in ~w(true 1), do: [:inet6], else: [] config :aprs, Aprs.Repo, # ssl: true, @@ -51,6 +51,8 @@ if config_env() == :prod do host = System.get_env("PHX_HOST") || "example.com" port = String.to_integer(System.get_env("PORT") || "4000") + config :aprs, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY") + config :aprs, AprsWeb.Endpoint, url: [host: host, port: 443, scheme: "https"], http: [ @@ -71,10 +73,6 @@ if config_env() == :prod do aprs_is_login_id: System.get_env("APRS_CALLSIGN"), aprs_is_password: System.get_env("APRS_PASSCODE") - # app_name = - # System.get_env("FLY_APP_NAME") || - # raise "FLY_APP_NAME not available" - app_name = "aprs" config :libcluster,