aboutsummaryrefslogtreecommitdiff
path: root/config/config.exs
diff options
context:
space:
mode:
authorSimponic <loganhunt@simponic.xyz>2022-12-27 23:50:22 -0700
committerSimponic <loganhunt@simponic.xyz>2022-12-27 23:50:22 -0700
commit10bc34245e8e1e3ba63fb0720d3bcfb1119db921 (patch)
tree0158f37dcda36f36327e45c4ce7543e77c26c8a0 /config/config.exs
parentf7c2ccbe26dc808e4a7eae9a378e6c382220961a (diff)
downloadchessh-10bc34245e8e1e3ba63fb0720d3bcfb1119db921.tar.gz
chessh-10bc34245e8e1e3ba63fb0720d3bcfb1119db921.zip
Initial erlang stuff
Diffstat (limited to 'config/config.exs')
-rw-r--r--config/config.exs8
1 files changed, 6 insertions, 2 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"