More config. This is getting tiresome

This commit is contained in:
Logan Hunt 2023-02-01 10:02:27 -07:00
parent ce27bfc871
commit 0ad97a374a
No known key found for this signature in database
GPG Key ID: 8AC6A4B840C0EC49
4 changed files with 18 additions and 10 deletions

View File

@ -23,12 +23,4 @@ config :chessh, Web,
config :joken, default_signer: "secret" config :joken, default_signer: "secret"
config :libcluster,
topologies: [
erlang_hosts_example: [
strategy: Elixir.Cluster.Strategy.ErlangHosts,
config: [timeout: 30_000]
]
]
import_config "#{config_env()}.exs" import_config "#{config_env()}.exs"

View File

@ -12,3 +12,11 @@ config :hammer,
{Hammer.Backend.ETS, [expiry_ms: 60_000 * 60 * 4, cleanup_interval_ms: 60_000 * 10]}, {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]} redis: {Hammer.Backend.ETS, [expiry_ms: 60_000 * 60 * 4, cleanup_interval_ms: 60_000 * 10]}
] ]
config :libcluster,
topologies: [
chessh_dev: [
strategy: Elixir.Cluster.Strategy.ErlangHosts,
config: [timeout: 30_000]
]
]

View File

@ -20,7 +20,7 @@ config :libcluster,
if_addr: "0.0.0.0", if_addr: "0.0.0.0",
multicast_if: "192.168.1.1", multicast_if: "192.168.1.1",
multicast_addr: "233.252.255.255", multicast_addr: "233.252.255.255",
multicast_ttl: 1, multicast_ttl: 1
] ]
] ]
] ]

View File

@ -18,6 +18,14 @@ config :hammer,
redis: {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, config :chessh,
ssh_port: 34_355, ssh_port: 42_069,
key_dir: Path.join(Path.dirname(__DIR__), "priv/test_keys") key_dir: Path.join(Path.dirname(__DIR__), "priv/test_keys")