This is a TURN server for chatmail relays based on webrtc.rs stack.
It uses authentication scheme described in so-called REST authentication.
The goal is to have a TURN server for use with chatmail relays distributed as a single binary.
coturn was considered as an alternative, but the version distributed in Debian 12 (Bookworm) turned out not to work with Firefox and Ubuntu Touch webview at the time. Debian 13 (Trixie) worked, but chatmail relays were based on Debian 12 at the time.
To build the release, run nix build .#chatmail-turn-x86_64-linux
or nix build .#chatmail-turn-aarch64-linux
,
depending on the target platform.
The resulting binary is then available in ./result/bin/chatmail-turn
.