Skip to content

Instantly share code, notes, and snippets.

@Nezteb
Created June 7, 2023 01:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nezteb/60f858a59aec955356e776810a1cde27 to your computer and use it in GitHub Desktop.
Save Nezteb/60f858a59aec955356e776810a1cde27 to your computer and use it in GitHub Desktop.
Deploying Conduit (Matrix homeserver built in Rust) on Fly.io
# https://gitlab.com/famedly/conduit/-/blob/next/docker/README.md
# https://gitlab.com/famedly/conduit/-/blob/next/Dockerfile
# https://hub.docker.com/r/matrixconduit/matrix-conduit
FROM matrixconduit/matrix-conduit:next-bullseye
ENV CONDUIT_SERVER_NAME="my.domain.com"
ENV CONDUIT_DATABASE_BACKEND="rocksdb"
# Set to false after making your first admin user
ENV CONDUIT_ALLOW_REGISTRATION=true
ENV CONDUIT_ALLOW_FEDERATION=true
ENV CONDUIT_MAX_REQUEST_SIZE=20000000
ENV CONDUIT_TRUSTED_SERVERS="[\"matrix.org\"]"
ENV CONDUIT_MAX_CONCURRENT_REQUESTS="100"
ENV CONDUIT_LOG="warn,rocket=off,_=off,sled=off"
app = "my-matrix-app"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
[experimental]
allowed_public_ports = []
auto_rollback = true
# Data
[[mounts]]
destination = "/var/lib/matrix-conduit"
source = "matrix_data"
[[services]]
http_checks = []
internal_port = 6167
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
handlers = ["tls", "http"]
port = 8448
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment