Skip to content

Instantly share code, notes, and snippets.

@tbaums
Last active November 18, 2023 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbaums/0c20ddcf71485e15f0f06c6e0bf3329d to your computer and use it in GitHub Desktop.
Save tbaums/0c20ddcf71485e15f0f06c6e0bf3329d to your computer and use it in GitHub Desktop.
demo-config.toml
[node]
display_name = "device1"
storage_path = "client.sqlite"
unique_id = "device1"
# MYCELIAL SERVER
# Replace with the endpoint and token for your Sqlite Physical Replication Server
[server]
endpoint = "http://0.0.0.0:7777" # Default Sqlite Physical Replication Server endpoint
token = "token" # Default token for Sqlite Physical Replication Server and Clients
[[sources]]
type = "hello_world"
interval_milis = 5000
message = 1
display_name = "Hello World Src"
# DESTINATIONS
# Define all data DESTINATIONS (data stores and directory paths)
# accessible by the Node that should be exposed as DESTINATIONS to the Sqlite Physical Replication Server
[[destinations]]
type = "hello_world"
display_name = "Hello World Dest"
[[destinations]]
type = "postgres_connector"
display_name = "postgres destination"
url = "postgres://user:password@postgres:5432/demo"
[[destinations]]
type = "mysql_connector"
display_name = "mysql destination"
url = "mysql://root:password@mysql:3306/demo"
[[destinations]]
type = "kafka"
display_name = "Kafka Destination"
brokers = "redpanda:29092"
topic = "demo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment