mirror of
https://github.com/warmbly/warmbly.git
synced 2026-10-05 16:02:10 +00:00
69 lines
1.9 KiB
Elixir
69 lines
1.9 KiB
Elixir
defmodule Realtime.MixProject do
|
|
use Mix.Project
|
|
|
|
def project do
|
|
[
|
|
app: :realtime,
|
|
version: "0.1.0",
|
|
elixir: "~> 1.18",
|
|
listeners: [Phoenix.CodeReloader],
|
|
start_permanent: Mix.env() == :prod,
|
|
elixirc_paths: elixirc_paths(Mix.env()),
|
|
deps: deps()
|
|
]
|
|
end
|
|
|
|
# test/support holds the in-memory stand-ins (rate-limit counter, channel
|
|
# case) that let the suite run with no Redis and no Postgres.
|
|
defp elixirc_paths(:test), do: ["lib", "test/support"]
|
|
defp elixirc_paths(_), do: ["lib"]
|
|
|
|
def application do
|
|
[
|
|
extra_applications: [:logger, :runtime_tools],
|
|
mod: {Realtime.Application, []}
|
|
]
|
|
end
|
|
|
|
defp deps do
|
|
[
|
|
# Phoenix
|
|
{:phoenix, "~> 1.7"},
|
|
{:phoenix_pubsub, "~> 2.1"},
|
|
{:plug_cowboy, "~> 2.7"},
|
|
# cowlib 2.20.0 is the latest release and still carries
|
|
# EEF-CVE-2026-43966 (response splitting) and -43969 (cookie header
|
|
# injection); neither is patched upstream. 43966 is answered by the floor
|
|
# below: cowboy >= 2.16 rejects CR/LF in response header values before the
|
|
# wire. 43969 needs cow_cookie:cookie/1, and this service sets no cookie
|
|
# on any path: the socket authenticates from a JWT and answers with none.
|
|
# Keep the floor, and re-check both when cowlib next publishes.
|
|
{:cowboy, "~> 2.16"},
|
|
{:jason, "~> 1.4"},
|
|
|
|
# Google Pub/Sub
|
|
{:broadway, "~> 1.0"},
|
|
{:broadway_cloud_pub_sub, "~> 0.9"},
|
|
{:goth, "~> 1.4"},
|
|
|
|
# Database
|
|
{:ecto_sql, "~> 3.10"},
|
|
{:postgrex, "~> 0.17"},
|
|
|
|
# Redis
|
|
{:redix, "~> 1.3"},
|
|
|
|
# Authentication
|
|
{:jose, "~> 1.11"},
|
|
|
|
# Error tracking. Finch is the HTTP client (already pulled in by goth and
|
|
# broadway_cloud_pub_sub); hackney was dropped to clear CVE-2026-47071.
|
|
{:sentry, "~> 10.0"},
|
|
{:finch, "~> 0.21"},
|
|
|
|
# Utilities
|
|
{:uuid, "~> 1.1"}
|
|
]
|
|
end
|
|
end
|