2024-08-24 00:17:21 +00:00
|
|
|
import Config
|
|
|
|
|
2024-08-29 12:52:13 +00:00
|
|
|
config :vonbraun, Vonbraun.Cache,
|
|
|
|
# When using :shards as backend
|
|
|
|
# backend: :shards,
|
|
|
|
# GC interval for pushing new generation: 12 hrs
|
|
|
|
gc_interval: :timer.hours(12),
|
|
|
|
# Max 1 million entries in cache
|
|
|
|
max_size: 1_000_000,
|
|
|
|
# Max 2 GB of memory
|
|
|
|
allocated_memory: 2_000_000_000,
|
|
|
|
# GC min timeout: 10 sec
|
|
|
|
gc_cleanup_min_timeout: :timer.seconds(10),
|
|
|
|
# GC max timeout: 10 min
|
|
|
|
gc_cleanup_max_timeout: :timer.minutes(10)
|
|
|
|
|
2024-09-05 17:56:16 +00:00
|
|
|
#config :vonbraun,
|
|
|
|
# json_ld: %{
|
|
|
|
# "https://www.w3.org/ns/activitystreams" =>
|
|
|
|
# File.read!(Path.join(Path.dirname(__DIR__), "priv/jsonld/activitystreams.json"))
|
|
|
|
# }
|
|
|
|
|
|
|
|
config :vonbraun,
|
|
|
|
json_ld: %{}
|
2024-09-04 17:22:35 +00:00
|
|
|
|
2024-08-24 00:17:21 +00:00
|
|
|
import_config "#{Mix.env()}.exs"
|