summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorTimo Kösters <timo@koesters.xyz>2022-02-12 10:29:04 +0100
committerJonas Zohren <git-pbkyr@jzohren.de>2022-02-16 15:11:46 +0100
commitde6c3312ceca9d0f9c0d2041c16a46d6b538b2a6 (patch)
treee4e91da23ed3d072c3b2fb579bffbe71fd1ee124 /Dockerfile
parentc66866d89092cde7c9aa834e442de1a13a1a680c (diff)
downloadconduit-de6c3312ceca9d0f9c0d2041c16a46d6b538b2a6.zip
docs: make all configs match
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile15
1 files changed, 12 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index b631f29..34a0766 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -35,9 +35,18 @@ FROM docker.io/debian:bullseye-slim AS runner
# You still need to map the port when using the docker command or docker-compose.
EXPOSE 6167
-# Note from @jfowl: I would like to remove the config file in the future and just have the Docker version be configured with envs.
-ENV CONDUIT_CONFIG="/srv/conduit/conduit.toml" \
- CONDUIT_PORT=6167
+ENV CONDUIT_SERVER_NAME=your.server.name # EDIT THIS
+ENV CONDUIT_DATABASE_PATH=/var/lib/matrix-conduit
+ENV CONDUIT_DATABASE_BACKEND=rocksdb
+ENV CONDUIT_PORT=6167
+ENV CONDUIT_MAX_REQUEST_SIZE=20_000_000 # in bytes, ~20 MB
+ENV CONDUIT_ALLOW_REGISTRATION=true
+ENV CONDUIT_ALLOW_FEDERATION=true
+ENV CONDUIT_TRUSTED_SERVERS=["matrix.org"]
+#ENV CONDUIT_MAX_CONCURRENT_REQUESTS=100
+#ENV CONDUIT_LOG=info,rocket=off,_=off,sled=off
+ENV CONDUIT_ADDRESS=0.0.0.0
+ENV CONDUIT_CONFIG='' # Ignore this
# Conduit needs:
# ca-certificates: for https