1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2024-12-23 01:32:19 +00:00
ghostream/docs/ghostream.example.yml
2020-10-04 17:56:03 +02:00

61 lines
1.5 KiB
YAML

# Example configuration
# Authentification
auth:
backend: basic
basic:
credentials:
# Demo user with password "demo"
demo: $2b$15$LRnG3eIHFlYIguTxZOLH7eHwbQC/vqjnLq6nDFiHSUDKIU.f5/1H6
# Example to bypass login, dangerous!
#backend: bypass
#
# Example of LDAP server login
#backend: ldap
#ldap:
# uri: ldap://127.0.0.1:389
# userdn: cn=users,dc=example,dc=com
# Configure stream forwarding
forwarding:
# Example to forward a stream named "demo" to Twitch and YouTube
#demo:
# - rtmp://live-cdg.twitch.tv/app/STREAM_KEY
# - rtmp://a.rtmp.youtube.com/live2/STREAM_KEY
# Prometheus monitoring endpoint
monitoring:
listenAddress: 127.0.0.1:2112
# Configure SRT server
srt:
listenAddress: 127.0.0.1:9710
# Max number of active SRT connections
maxClients: 64
# Configure web server
web:
listenAddress: 127.0.0.1:8080
name: Demo
hostname: localhost
favicon: https://www.crans.org/images/favicon.ico
# You can optionally use {{.Path}} to customize your widget URL
widgetURL: https://example.com/stream_{{.Path}}
viewersCounterRefreshPeriod: 20000
# When oneStreamPerDomain is enabled, the stream name will be the domain name.
# For example, on http://example.com:8080/ the stream will always be "example.com"
oneStreamPerDomain: false
# Configure WebRTC server
webrtc:
# UDP port range used to stream
minPortUDP: 10000
maxPortUDP: 10005
# STUN servers, you should host your own Coturn instance
STUNServers:
- stun:stun.l.google.com:19302