From 3b8d0c44587d25fc7b034dc48e4c8db9259da615 Mon Sep 17 00:00:00 2001 From: Simponic Date: Wed, 1 Feb 2023 08:51:20 -0700 Subject: Multicast instead of .hosts.erlang --- config/prod.exs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'config') diff --git a/config/prod.exs b/config/prod.exs index 15d52a1..6196da8 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -13,8 +13,15 @@ config :chessh, RateLimits, config :libcluster, topologies: [ - erlang_hosts_example: [ - strategy: Elixir.Cluster.Strategy.ErlangHosts, - config: [timeout: 30_000] + chessh: [ + strategy: Elixir.Cluster.Strategy.Gossip, + config: [ + port: 45892, + if_addr: "0.0.0.0", + multicast_if: "192.168.1.1", + multicast_addr: "233.252.1.32", + multicast_ttl: 1, + secret: "chessh" + ] ] ] -- cgit v1.2.3-70-g09d2