chessh/config/test.exs

24 lines
597 B
Elixir
Raw Normal View History

2022-12-19 03:37:10 -05:00
import Config
2022-12-29 19:21:20 -05:00
config :chessh, RateLimits,
2022-12-30 07:46:35 -05:00
jail_timeout_ms: 10_000,
2022-12-29 19:49:42 -05:00
jail_attempt_threshold: 3
2022-12-28 01:50:22 -05:00
2022-12-19 03:37:10 -05:00
config :chessh, Chessh.Repo,
2022-12-30 07:46:35 -05:00
database: "chesshtest",
2022-12-19 03:37:10 -05:00
username: "postgres",
password: "postgres",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox
2023-01-24 14:35:27 -05:00
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 :chessh,
ssh_port: 34_355,
2022-12-28 01:50:22 -05:00
key_dir: Path.join(Path.dirname(__DIR__), "priv/test_keys")