From 16281b0e8deb6b3bf86ac0b9381f3fdf89b22b58 Mon Sep 17 00:00:00 2001 From: Simponic Date: Mon, 2 Jan 2023 19:10:23 -0700 Subject: Now a simple logo draws in the center of the terminal, terminal size is limited, and resizing support --- config/config.exs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'config') diff --git a/config/config.exs b/config/config.exs index 42339fd..a12949b 100644 --- a/config/config.exs +++ b/config/config.exs @@ -1,5 +1,9 @@ import Config +# This will be redis when scaled across multiple nodes +config :hammer, + backend: {Hammer.Backend.ETS, [expiry_ms: 60_000 * 60 * 4, cleanup_interval_ms: 60_000 * 10]} + config :chessh, ecto_repos: [Chessh.Repo], key_dir: Path.join(Path.dirname(__DIR__), "priv/keys"), @@ -9,10 +13,8 @@ config :chessh, config :chessh, RateLimits, jail_timeout_ms: 5 * 60 * 1000, jail_attempt_threshold: 15, - max_concurrent_user_sessions: 5 - -# This will be redis when scaled across multiple nodes -config :hammer, - backend: {Hammer.Backend.ETS, [expiry_ms: 60_000 * 60 * 4, cleanup_interval_ms: 60_000 * 10]} + max_concurrent_user_sessions: 5, + player_session_message_burst_ms: 3_000, + player_session_message_burst_rate: 15 import_config "#{config_env()}.exs" -- cgit v1.2.3-70-g09d2