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",
|
2022-12-19 18:27:34 -05:00
|
|
|
hostname: "localhost",
|
|
|
|
pool: Ecto.Adapters.SQL.Sandbox
|
2022-12-19 22:56:59 -05:00
|
|
|
|
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]}
|
|
|
|
]
|
|
|
|
|
2022-12-22 17:27:55 -05:00
|
|
|
config :chessh,
|
2023-01-29 01:04:49 -05:00
|
|
|
ssh_port: 34_355,
|
2022-12-28 01:50:22 -05:00
|
|
|
key_dir: Path.join(Path.dirname(__DIR__), "priv/test_keys")
|