项目作者: paullouisageneau

项目描述 :
Lightweight STUN/TURN server
高级语言: C
项目地址: git://github.com/paullouisageneau/violet.git
创建时间: 2021-02-14T11:11:15Z
项目社区:https://github.com/paullouisageneau/violet

开源协议:GNU Affero General Public License v3.0

下载


Violet - Lightweight STUN/TURN server

License: GPL v2 or later
Build
Docker
Gitter
Discord

Violet is a lightweight STUN/TURN server (RFC8489 and RFC8656) written in C without dependencies, based on libjuice.

Violet is licensed under GPLv2 or later, see LICENSE.

Oompa-Loompas rolling Violet, from Charlie and the Chocolate Factory

“Mercy! Save us!” yelled Mrs Beauregarde. “[…] Violet, you’re turning violet, Violet!” […]

“Squeeze her,” said Mr Wonka. “We’ve got to squeeze the juice out of her immediately.”

— Charlie and the Chocolate Factory, Roald Dahl

Dependencies

No external dependencies!

Running with Docker

An image is available on Docker Hub, running the TURN server with default options is as simple as:

  1. docker run --network=host paullouisageneau/violet --credentials=USER:PASSWORD

Available options can be listed with the --help flag:

  1. docker run paullouisageneau/violet --help

Installing on Arch Linux

Violet is available as a package on AUR:

  1. paru -S violet
  2. sudo systemctl enable --now violet

The configuration file is /etc/violet/violet.conf

Building

Clone repository and submodules

  1. git clone https://github.com/paullouisageneau/violet.git
  2. cd violet
  3. git submodule update --init --recursive

Build with CMake

  1. cmake -B build -DCMAKE_BUILD_TYPE=Release
  2. cd build
  3. make -j2
  1. ./violet --credentials=USER:PASSWORD

You can list available options with the --help (or -h) flag. You can also load a configuration file:

  1. ./violet -f ../example.conf

Build with Docker

  1. docker build -t violet .
  1. docker run --network=host violet --credentials=USER:PASSWORD

You can list available options with the --help flag. You can also load a configuration file:

  1. docker run \
  2. --network=host \
  3. --mount type=bind,source=$(pwd)/example.conf,target=/etc/violet.conf,readonly \
  4. paullouisageneau/violet --file=/etc/violet.conf