diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/config.exs | 8 | ||||
-rw-r--r-- | config/test.exs | 5 |
2 files changed, 10 insertions, 3 deletions
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") |