use Mix.Config
-config :wampex, Wampex.Router.Authentication.Repo,
+config :wampex_router, Wampex.Router.Authentication.Repo,
database: "authentication",
hostname: "localhost",
port: 26_257,
username: "root"
-config :cluster_kv,
+config :wampex_router,
topologies: [
kv: [
strategy: Cluster.Strategy.Epmd,
]
]
-config :wampex,
+config :wampex_router,
ecto_repos: [Wampex.Router.Authentication.Repo],
keylen: 32
defmodule Wampex.Router.Authentication.Repo do
use Ecto.Repo,
- otp_app: :wampex,
+ otp_app: :wampex_router,
adapter: Ecto.Adapters.Postgres
end
end
def create(authid: authid, password: password, realm: realm) do
- keylen = Application.get_env(:wampex, :keylen)
+ keylen = Application.get_env(:wampex_router, :keylen)
salt = Crypto.random_string(keylen)
iterations = Enum.random(10_000..50_000)
@device "as987d9a8sd79a87ds"
setup_all do
- topologies = Application.get_env(:cluster_kv, :topologies)
+ topologies = Application.get_env(:wampex_router, :topologies)
[
server: