diff options
author | Simponic <loganhunt@simponic.xyz> | 2022-12-29 17:21:20 -0700 |
---|---|---|
committer | Simponic <loganhunt@simponic.xyz> | 2022-12-29 17:21:20 -0700 |
commit | 1a2bdccf124de6207899f59538cc0ed2efc97b5a (patch) | |
tree | 5b582023531c8df637881899ab64d5f5eddd7f3f /config/config.exs | |
parent | 10bc34245e8e1e3ba63fb0720d3bcfb1119db921 (diff) | |
download | chessh-1a2bdccf124de6207899f59538cc0ed2efc97b5a.tar.gz chessh-1a2bdccf124de6207899f59538cc0ed2efc97b5a.zip |
Add scalable nodes and user sessions
Diffstat (limited to 'config/config.exs')
-rw-r--r-- | config/config.exs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config/config.exs b/config/config.exs index 2136a60..c919a33 100644 --- a/config/config.exs +++ b/config/config.exs @@ -3,10 +3,14 @@ import Config config :chessh, ecto_repos: [Chessh.Repo], key_dir: Path.join(Path.dirname(__DIR__), "priv/keys"), - max_password_attempts: 3, port: 42_069, max_sessions: 255 +config :chessh, RateLimits, + jail_timeout_ms: 5 * 60 * 1000, + jail_threshold: 15, + max_concurrent_user_sessions: 5 + config :hammer, backend: {Hammer.Backend.ETS, [expiry_ms: 60_000 * 60 * 4, cleanup_interval_ms: 60_000 * 10]} |