summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorSimponic <loganhunt@simponic.xyz>2023-01-02 19:10:23 -0700
committerSimponic <loganhunt@simponic.xyz>2023-01-02 19:10:23 -0700
commit16281b0e8deb6b3bf86ac0b9381f3fdf89b22b58 (patch)
tree80295ecaaad54c82ea1541d0932f8e8043f88515 /config
parent2bf058d5db79cc75f87d9accfeb9773d5bf29686 (diff)
downloadchessh-16281b0e8deb6b3bf86ac0b9381f3fdf89b22b58.tar.gz
chessh-16281b0e8deb6b3bf86ac0b9381f3fdf89b22b58.zip
Now a simple logo draws in the center of the terminal, terminal size is limited, and resizing support
Diffstat (limited to 'config')
-rw-r--r--config/config.exs12
1 files changed, 7 insertions, 5 deletions
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"