Crates.io | turn-server |
lib.rs | turn-server |
version | 1.2.0 |
source | src |
created_at | 2023-01-01 05:44:27.138604 |
updated_at | 2023-06-24 22:50:42.434958 |
description | A pure rust-implemented turn server. |
homepage | https://github.com/colourful-rtc/turn-rs |
repository | https://github.com/colourful-rtc/turn-rs |
max_upload_size | |
id | 748736 |
size | 98,025 |
A pure rust-implemented turn server, different from coturn, provides a more flexible external control API and provides the same performance and memory footprint, this project is most compatible with the scenario of using stun/turn server in webrtc.
hooks-api
)controller-api
)allocate request does not allocate real udp ports
)stun
, fast and zero-cost stun message decoder and encoder. (crate
).turn
, a library for handling turn sessions. (crate
).turn-server
, implementation of turn server based on turn library.cargo install turn-server
Start with configuration file:
turn-server --config=/etc/turn_server/config.toml
Please check the example configuration file for details: turn_server.toml
docker pull quasipaa/turn-server
The custom configuration file overrides the /etc/turn-server/config.toml
path inside the image through -v
.
./install-service.sh
This will compile the project and install and start the service.
You need to install the Rust toolchain, if you have already installed it, you can skip it, Install Rust, then get the source code:
git clone https://github.com/mycrl/turn-rs
Compile the entire workspace in release mode:
cd turn-rs
cargo build --release
After the compilation is complete, you can find the binary file in the "target/release" directory.
MIT Copyright (c) 2022 Mr.Panda.