summaryrefslogtreecommitdiff
path: root/config/prod.exs
blob: 5c199a0e26f66fb5a16209fb7a6682f15ae525f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import Config

config :logger,
  level: :warning,
  truncate: 4096

config :chessh, RateLimits,
  jail_timeout_ms: 5 * 60 * 1000,
  jail_attempt_threshold: 15,
  max_concurrent_user_sessions: 5,
  player_session_message_burst_ms: 750,
  player_session_message_burst_rate: 8

config :libcluster,
  topologies: [
    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.255.255",
        multicast_ttl: 1,
      ]
    ]
  ]

config :libcluster,
  debug: true