commit e9e62a00e929a0577151dca71566cc9aca50bd6a Author: Bel LaPointe Date: Thu Jan 13 02:12:20 2022 -0500 init diff --git a/conduit.toml b/conduit.toml new file mode 100644 index 0000000..9972839 --- /dev/null +++ b/conduit.toml @@ -0,0 +1,27 @@ +[global] +server_name = "monolith.mac" + +# This is the only directory where Conduit will save its data +database_path = "/mnt/" + +port = 6167 + +max_request_size = 20_000_000 # in bytes + +allow_registration = true + +allow_encryption = false +allow_federation = false + +trusted_servers = ["matrix.org", "synapse.home.blapointe.com"] + +max_concurrent_requests = 10 + +#log = "info,state_res=warn,rocket=off,_=off,sled=off" +#workers = 4 # default: cpu core count * 2 + +address = "127.0.0.1" # This makes sure Conduit can only be reached using the reverse proxy + +proxy = "none" # more examples can be found at src/database/proxy.rs:6 + +db_cache_capacity_mb = 100 diff --git a/mnt/conduit.db b/mnt/conduit.db new file mode 100644 index 0000000..9f27de1 Binary files /dev/null and b/mnt/conduit.db differ diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..2feefcd --- /dev/null +++ b/run.sh @@ -0,0 +1,5 @@ +#! /bin/bash + +mkdir ./mnt +touch ./conduit.toml +docker run --rm -it -p 8448:6167 -v $PWD/mnt:/mnt -v $PWD/conduit.toml:/srv/conduit/conduit.toml -v $PWD/db:/srv/conduit/.local/share/conduit matrixconduit/matrix-conduit:latest