diff options
author | Logan Hunt <logan.hunt@usu.edu> | 2023-01-31 12:44:15 -0700 |
---|---|---|
committer | Logan Hunt <logan.hunt@usu.edu> | 2023-01-31 12:44:15 -0700 |
commit | e5d97870a12ec87bd463b7657923bb79d3bcb4cc (patch) | |
tree | e552aa6d98d9ccf628d4274b8d9538e741724530 /config/config.exs | |
parent | 4394d4721ccd5d9b503d01918ff3d6e5d6744c9d (diff) | |
download | chessh-e5d97870a12ec87bd463b7657923bb79d3bcb4cc.tar.gz chessh-e5d97870a12ec87bd463b7657923bb79d3bcb4cc.zip |
Rate limit game creation
Diffstat (limited to 'config/config.exs')
-rw-r--r-- | config/config.exs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/config.exs b/config/config.exs index a5782d4..e9fca38 100644 --- a/config/config.exs +++ b/config/config.exs @@ -12,7 +12,9 @@ config :chessh, RateLimits, max_concurrent_user_sessions: 5, player_session_message_burst_ms: 500, player_session_message_burst_rate: 8, - player_public_keys: 15 + player_public_keys: 15, + create_game_ms: 60 * 1000, + create_game_rate: 2 config :chessh, Web, github_oauth_login_url: "https://github.com/login/oauth/access_token", |