Add sync control plane API

This commit is contained in:
2026-03-16 21:23:39 +01:00
parent 769177a63e
commit 9be3b6ca52
10 changed files with 1142 additions and 14 deletions

View File

@@ -9,6 +9,9 @@ config :parrhesia,
path: nil,
private_key: nil
],
sync: [
path: nil
],
limits: [
max_frame_bytes: 1_048_576,
max_event_bytes: 262_144,

View File

@@ -455,6 +455,9 @@ if config_env() == :prod do
path: string_env.("PARRHESIA_IDENTITY_PATH", nil),
private_key: string_env.("PARRHESIA_IDENTITY_PRIVATE_KEY", nil)
],
sync: [
path: string_env.("PARRHESIA_SYNC_PATH", nil)
],
moderation_cache_enabled:
bool_env.("PARRHESIA_MODERATION_CACHE_ENABLED", moderation_cache_enabled_default),
enable_expiration_worker:

View File

@@ -19,6 +19,9 @@ config :parrhesia,
path: Path.join(System.tmp_dir!(), "parrhesia_test_identity.json"),
private_key: nil
],
sync: [
path: Path.join(System.tmp_dir!(), "parrhesia_test_sync.json")
],
features: [verify_event_signatures: false]
pg_host = System.get_env("PGHOST")