Stun-Turn-Server

Stun-Turn-Server

Docker 应用程序 from ich777's Repository

概述

This is a Basic STUN & TURN server that was mainly created for Nextcloud Talk. It is fully automated and will create all the necessary files and passwords so that the server can sucessfully start and run. Please read all the discriptions from the Variables carefully and also look at the 'Show more settings' tab. ATTENTION: Please ignore the socket errors after the server startup if you don't have IPv6 enabled on your server.

运行时参数

网络
bridge
外壳
bash
特权
false
额外参数
--restart=unless-stopped

模板配置

Container PathPathrw

Container Path: /stun-turn

目标
/stun-turn
价值
/mnt/cache/appdata/stun-turn-server
TCP PortPorttcp

TCP Port

目标
5349
价值
5349
UDP PortsPortudp

UDP Port

目标
5349
价值
5349
Port VariableVariable

If you change this variable you have to create two new port forwardings with the corresponding ports one for TCP and one for UDP.

目标
PORT
价值
5349
Static SecretVariable

Create your own secret and enter it here or leave empty and the server creats a secret that is stored into 'secret.txt' in the main directory of the container (generate it for example in a linux terminal with the command 'openssl rand -hex 32' without quotes).

目标
SECRET
RealmVariable

Your hostname (eg: 'example.org' without quotes).

目标
REALM
Certificate File NameVariable

Name of the certification file (leave empty if the server should create one or replace it with your own).

目标
CERT_FILE
价值
cert.pem
Private Key File NameVariable

Name of the private key file (leave empty if the server should create one or replace it with your own).

目标
PRIVKEY_FILE
价值
privkey.pem
Diffie-Hellman Key File NameVariable

Name of the Diffie–Hellman key file (leave empty if the server should create one or replace it with your own - also plase look under the 'Show more settings' tab if you want to generate a bigger or smaller key default is: 2048).

目标
DH_FILE
价值
dhparam.pem
Display Secrets in logVariable

Display your secrets in the log (set to 'true' or leave empty to disable it).

目标
DISPLAY_SECRETS
价值
true
Certificate Generation - CountryVariable

Country code for your certificate if the server should create one (two letters eg: 'US' without quotes - also plase look under the 'Show more settings' tab there are more settings for generating your certificate).

目标
CA_COUNTRY
Extra Startup ParametersVariable

Here you can enter your Extra Startup Parameters if needed (you can get a full list of commands from here: https://github.com/coturn/coturn/wiki/turnserver)

目标
EXTRA_PARAMS
Total QuotaVariable

Total allocations quota: global limit on concurrent allocations (only change if you know what you are doing).

目标
TOTAL_QUOTA
价值
100
Maximum bpsVariable

Max bytes-per-second bandwidth a TURN session is allowed to handle (input and output network streams are treated separately). Anything above that limit will be dropped or temporary suppressed - within the available buffer limits (only change if you know what you are doing).

目标
MAX_BPS
价值
0
Cipher ListVariable

Allowed OpenSSL cipher list for TLS/DTLS connections (only change if you know what you are doing).

目标
CIPHER_LIST
价值
ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384
Certificate Generation - Key LengthVariable

Enter your preferred key length (the higher the value the longer it takes to generate the certificate).

目标
CERT_LENGTH
价值
2048
Certificate Generation - Valid DaysVariable

Specify how long that the certificate should be valid in days.

目标
CERT_VALID_DAYS
价值
3650
Certificate Generation - State or ProvinceVariable

Specify your state or province.

目标
CA_STATE_PROV
价值
None
Certificate Generation - LocalityVariable

Specify your locality.

目标
CA_LOCALITY
价值
None
Certificate Generation - OrganizationVariable

Specify your organiszation.

目标
CA_ORGANIZATION
价值
None
Diffie–Hellman Key LengthVariable

Enter your preferred key length (the higher the value the longer it takes to generate the key).

目标
DH_LENGTH
价值
2048
Command Line PasswordVariable

Enter your CLI password or leave empty if you want that the server creates a random one (please note that you have to manually enable the console with the '--cli-port PORT' - PORT stands for your preferred port - in the Extra Startup Parameters and create the corresponding port).

目标
CLI_PASSWORD
Listening IPVariable

Specify the listening port (only change if you know what you are doing).

目标
LISTENING_IP
价值
0.0.0.0
UMASKVariable

Container Variable: 000

价值
000
UIDVariable

Container Variable: UID

价值
99
GIDVariable

Container Variable: GID

价值
100
DATA_PERMVariable

Container Variable: DATA_PERM

价值
770

类别

下载统计数据

102,817
下载总数
146
本月
143
平均每月

长期下载总量

加载图表...

详细信息

存储库
ghcr.io/ich777/stun-turn-server
最后更新2025-12-11
初见2020-03-21

在Unraid 上运行 Stun-Turn-Server 。

Stun-Turn-Server 已被列入Unraid OS 的社区应用程序。探索Unraid ,构建灵活的家庭服务器、NAS 或家庭实验室。