1.8 KiB
SETUP
-
For standalone builds you will need to add the included lib directories in your git repo to the library path:
export LD_LIBRARY_PATH=/path/to/src/deps/boost/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/path/to/src/deps/rocksdb:$LD_LIBRARY_PATH
-
We will refer to your server as
host.tld
. For those familiar with matrix: this is your origin and mxid@user:host.tld
hostpart. If you delegate your server's location to something likematrix.host.tld:1234
we refer to this as your servername.
Construct clusters all share the same origin but each individual instance of the daemon has a unique servername.
PROCEDURE
-
Execute
There are two arguments:
<origin> [servername]
. If the servername argument is missing, the origin will be used for it instead.bin/construct host.tld
There is no configuration file.
Log messages will appear in terminal concluding with notice
IRCd RUN
. -
Strike ctrl-c on keyboard
The command-line console will appear.
-
Create a general listener socket by entering the following command:
net listen matrix * 8448 privkey.pem cert.pem chain.pem
matrix
is your name for this listener; you can use any name.*
and8448
is the local address and port to bind.privkey.pem
andcert.pem
andchain.pem
are paths (ideally absolute paths) to PEM-format files for the listener's TLS.
The Matrix Federation Tester should now pass. Browse to https://matrix.org/federationtester/api/report?server_name=host.tld and verify
"AllChecksOK": true
-
To use a web-based client like Riot, configure the "webroot" directory to point at Riot's
webapp/
directory by entering the following:conf set ircd.webroot.path /path/to/riot-web/webapp/ mod reload index
-
Browse to
https://host.tld:8448/
and register a user.