##
##  livekit.yaml -- LiveKit Server Configuration
##

port: 7880

rtc:
    port_range_start: 50000
    port_range_end: 60000
    tcp_port: 7881
    use_external_ip: true
    ips:
        includes:
            - 127.0.0.0/8

keys:
    key1: echo-victor-oscar-bravo-Quebec-uniform-oscar-bravo
    key2: echo-victor-oscar-bravo-Quebec-uniform-oscar-bravo

logging:
    level: info
    pion_level: error

room:
    auto_create: false
    empty_timeout: 300
    departure_timeout: 20
    max_participants: 0
    enabled_codecs:
        - mime: audio/opus
        - mime: video/h264
        - mime: video/vp8
    enable_remote_unmute: false
    max_metadata_size: 0

psrpc:
    max_attempts: 3
    timeout: 500ms
    backoff: 500ms
    buffer_size: 1000

audio:
    active_level: 30
    min_percentile: 40
    update_interval: 500
    smooth_intervals: 4

turn:
    enabled: true
    udp_port: 3478
    tls_port: 5349
    relay_range_start: 20000
    relay_range_end: 30000
    external_tls: false
    domain: turn.example.com
    cert_file: @l_prefix@/etc/x509/example-server.crt.pem
    key_file:  @l_prefix@/etc/x509/example-server.key.pem

