From 10bc34245e8e1e3ba63fb0720d3bcfb1119db921 Mon Sep 17 00:00:00 2001 From: Simponic Date: Tue, 27 Dec 2022 23:50:22 -0700 Subject: Initial erlang stuff --- config/config.exs | 8 ++++++-- config/test.exs | 5 ++++- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'config') diff --git a/config/config.exs b/config/config.exs index daffcad..2136a60 100644 --- a/config/config.exs +++ b/config/config.exs @@ -2,8 +2,12 @@ import Config config :chessh, ecto_repos: [Chessh.Repo], - priv_dir: Path.join(Path.dirname(__DIR__), "priv/keys"), - port: 42069, + key_dir: Path.join(Path.dirname(__DIR__), "priv/keys"), + max_password_attempts: 3, + port: 42_069, max_sessions: 255 +config :hammer, + backend: {Hammer.Backend.ETS, [expiry_ms: 60_000 * 60 * 4, cleanup_interval_ms: 60_000 * 10]} + import_config "#{config_env()}.exs" diff --git a/config/test.exs b/config/test.exs index c1d70dd..db11bb4 100644 --- a/config/test.exs +++ b/config/test.exs @@ -1,5 +1,8 @@ import Config +config :hammer, + backend: {Hammer.Backend.ETS, [expiry_ms: 60_000 * 60 * 4, cleanup_interval_ms: 60_000 * 10]} + config :chessh, Chessh.Repo, database: "chessh-test", username: "postgres", @@ -8,4 +11,4 @@ config :chessh, Chessh.Repo, pool: Ecto.Adapters.SQL.Sandbox config :chessh, - priv_dir: Path.join(Path.dirname(__DIR__), "priv/keys") + key_dir: Path.join(Path.dirname(__DIR__), "priv/test_keys") -- cgit v1.2.3-70-g09d2