Skip to content

Commit

Permalink
https://github.com/bonfire-networks/bonfire-app/issues/594
Browse files Browse the repository at this point in the history
  • Loading branch information
mayel committed Dec 6, 2023
1 parent 5cc8215 commit 89976ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flavours/classic/config/activity_pub.exs
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,6 @@ config :activity_pub, :json_contexts,
ValueFlows: "https://w3id.org/valueflows#",
om2: "http://www.ontology-of-units-of-measure.org/resource/om-2/"
]

config :hammer,
backend: {Hammer.Backend.ETS, [expiry_ms: 60_000 * 60 * 4, cleanup_interval_ms: 60_000 * 10]}
4 changes: 4 additions & 0 deletions flavours/classic/config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ config :activity_pub, Oban,
repo: Bonfire.Common.Repo,
queues: false

config :activity_pub, ActivityPub.Federator.HTTP.RateLimit,
scale_ms: String.to_integer(System.get_env("AP_RATELIMIT_PER_MS", "10000")),
limit: String.to_integer(System.get_env("AP_RATELIMIT_NUM", "20"))

case System.get_env("GRAPH_DB_URL") do
nil ->
nil
Expand Down

0 comments on commit 89976ae

Please sign in to comment.