aboutsummaryrefslogtreecommitdiff
path: root/config/runtime.exs
diff options
context:
space:
mode:
authorLogan Hunt <loganhunt@simponic.xyz>2023-01-24 12:35:27 -0700
committerLogan Hunt <logan.hunt@usu.edu>2023-01-24 12:43:08 -0700
commitab5fc4a077eadcc3dfd28c3af89a762711a6b6b4 (patch)
tree8f5100e54ce5be4b78e0a866871c67141082e89a /config/runtime.exs
parentf8fd8fe39f33f35fef50094939657c86cc62427c (diff)
downloadchessh-ab5fc4a077eadcc3dfd28c3af89a762711a6b6b4.tar.gz
chessh-ab5fc4a077eadcc3dfd28c3af89a762711a6b6b4.zip
Update elixir.yml
Diffstat (limited to 'config/runtime.exs')
-rw-r--r--config/runtime.exs30
1 files changed, 15 insertions, 15 deletions
diff --git a/config/runtime.exs b/config/runtime.exs
index f3cc03c..832dc95 100644
--- a/config/runtime.exs
+++ b/config/runtime.exs
@@ -1,20 +1,5 @@
import Config
-config :hammer,
- backend: [
- in_memory:
- {Hammer.Backend.ETS, [expiry_ms: 60_000 * 60 * 4, cleanup_interval_ms: 60_000 * 10]},
- redis:
- {Hammer.Backend.Redis,
- [
- expiry_ms: 60_000 * 60 * 2,
- redix_config: [
- host: System.get_env("REDIS_HOST", "localhost"),
- port: String.to_integer(System.get_env("REDIS_PORT", "6379"))
- ]
- ]}
- ]
-
config :chessh,
port: String.to_integer(System.get_env("SSH_PORT", "42069"))
@@ -43,4 +28,19 @@ if config_env() == :prod do
url: database_url,
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
socket_options: maybe_ipv6
+
+ config :hammer,
+ backend: [
+ in_memory:
+ {Hammer.Backend.ETS, [expiry_ms: 60_000 * 60 * 4, cleanup_interval_ms: 60_000 * 10]},
+ redis:
+ {Hammer.Backend.Redis,
+ [
+ expiry_ms: 60_000 * 60 * 2,
+ redix_config: [
+ host: System.get_env("REDIS_HOST", "redis"),
+ port: String.to_integer(System.get_env("REDIS_PORT", "6379"))
+ ]
+ ]}
+ ]
end