diff options
author | Logan Hunt <logan.hunt@usu.edu> | 2023-01-31 19:05:01 -0700 |
---|---|---|
committer | Logan Hunt <logan.hunt@usu.edu> | 2023-01-31 19:07:47 -0700 |
commit | b6d4f7044fa9bec32489d0ca5c3392e76ad2c1bc (patch) | |
tree | e85b1cb72f437c901f16fa2810ab43d4b62ee9eb /config | |
parent | ce5f598331b2be3be08cf697a59e8629cc69fe07 (diff) | |
download | chessh-b6d4f7044fa9bec32489d0ca5c3392e76ad2c1bc.tar.gz chessh-b6d4f7044fa9bec32489d0ca5c3392e76ad2c1bc.zip |
Elixir cluster!
Diffstat (limited to 'config')
-rw-r--r-- | config/config.exs | 8 | ||||
-rw-r--r-- | config/prod.exs | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/config/config.exs b/config/config.exs index 44230ae..4d32140 100644 --- a/config/config.exs +++ b/config/config.exs @@ -23,4 +23,12 @@ config :chessh, Web, config :joken, default_signer: "secret" +config :libcluster, + topologies: [ + erlang_hosts_example: [ + strategy: Elixir.Cluster.Strategy.ErlangHosts, + config: [timeout: 30_000] + ] + ] + import_config "#{config_env()}.exs" diff --git a/config/prod.exs b/config/prod.exs index bb12243..15d52a1 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -10,3 +10,11 @@ config :chessh, RateLimits, max_concurrent_user_sessions: 5, player_session_message_burst_ms: 750, player_session_message_burst_rate: 8 + +config :libcluster, + topologies: [ + erlang_hosts_example: [ + strategy: Elixir.Cluster.Strategy.ErlangHosts, + config: [timeout: 30_000] + ] + ] |