summaryrefslogtreecommitdiff
path: root/config/test.exs
blob: 83ee6f1a560436f319dbecd6cb82e86b0ad935b5 (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
30
31
import Config

config :chessh, RateLimits,
  jail_timeout_ms: 10_000,
  jail_attempt_threshold: 3

config :chessh, Chessh.Repo,
  database: "chesshtest",
  username: "postgres",
  password: "postgres",
  hostname: "localhost",
  pool: Ecto.Adapters.SQL.Sandbox

config :hammer,
  backend: [
    in_memory:
      {Hammer.Backend.ETS, [expiry_ms: 60_000 * 60 * 4, cleanup_interval_ms: 60_000 * 10]},
    redis: {Hammer.Backend.ETS, [expiry_ms: 60_000 * 60 * 4, cleanup_interval_ms: 60_000 * 10]}
  ]

config :libcluster,
  topologies: [
    chessh_test: [
      strategy: Elixir.Cluster.Strategy.Epmd
    ]
  ]


config :chessh,
  ssh_port: 42_069,
  key_dir: Path.join(Path.dirname(__DIR__), "priv/test_keys")