108 lines
3.6 KiB
Plaintext
108 lines
3.6 KiB
Plaintext
###############################################################################
|
|
# ______ #
|
|
# / _____) #
|
|
# ( (____ ____ _____ ____ ___ _____ ____ _ _ _____ ____ #
|
|
# \____ \ | _ \ (____ || _ \ /___)| ___ | / ___)| | | || ___ | / ___) #
|
|
# _____) )| | | |/ ___ || |_| ||___ || ____|| | \ V / | ____|| | #
|
|
# (______/ |_| |_|\_____|| __/ (___/ |_____)|_| \_/ |_____)|_| #
|
|
# |_| #
|
|
# #
|
|
# Snapserver config file #
|
|
# #
|
|
###############################################################################
|
|
|
|
# default values are commented
|
|
# uncomment and edit to change them
|
|
|
|
|
|
# HTTP RPC ####################################################################
|
|
#
|
|
[http]
|
|
# enable HTTP Json RPC (HTTP POST and websockets)
|
|
#enabled = true
|
|
|
|
# address to listen on, can be specified multiple times
|
|
# use "0.0.0.0" to bind to any IPv4 address or :: to bind to any IPv6 address
|
|
# or "127.0.0.1" or "::1" to bind to localhost IPv4 or IPv6, respectively
|
|
# use the address of a specific network interface to just listen to and accept
|
|
# connections from that interface
|
|
#bind_to_address = 0.0.0.0
|
|
|
|
# which port the server should listen to
|
|
#port = 1780
|
|
|
|
# serve a website from the doc_root location
|
|
#doc_root =
|
|
#
|
|
###############################################################################
|
|
|
|
|
|
# TCP RPC #####################################################################
|
|
#
|
|
[tcp]
|
|
# enable TCP Json RPC
|
|
#enabled = true
|
|
|
|
# address to listen on, can be specified multiple times
|
|
# use "0.0.0.0" to bind to any IPv4 address or :: to bind to any IPv6 address
|
|
# or "127.0.0.1" or "::1" to bind to localhost IPv4 or IPv6, respectively
|
|
# use the address of a specific network interface to just listen to and accept
|
|
# connections from that interface
|
|
#bind_to_address = 0.0.0.0
|
|
|
|
# which port the server should listen to
|
|
#port = 1705
|
|
#
|
|
###############################################################################
|
|
|
|
|
|
# Stream settings #############################################################
|
|
#
|
|
[stream]
|
|
# address to listen on, can be specified multiple times
|
|
# use "0.0.0.0" to bind to any IPv4 address or :: to bind to any IPv6 address
|
|
# or "127.0.0.1" or "::1" to bind to localhost IPv4 or IPv6, respectively
|
|
# use the address of a specific network interface to just listen to and accept
|
|
# connections from that interface
|
|
#bind_to_address = 0.0.0.0
|
|
|
|
# which port the server should listen to
|
|
#port = 1704
|
|
|
|
# stream URI of the PCM input stream, can be configured multiple times
|
|
# Format: TYPE://host/path?name=NAME[&codec=CODEC][&sampleformat=SAMPLEFORMAT]
|
|
stream = pipe:///tmp/snapfifo?name=default
|
|
|
|
# Default sample format
|
|
sampleformat = 48000:16:2
|
|
|
|
# Default transport codec
|
|
# (flac|ogg|opus|pcm)[:options]
|
|
# Type codec:? to get codec specific options
|
|
codec = opus
|
|
|
|
|
|
# Default stream read buffer [ms]
|
|
stream_buffer = 20
|
|
|
|
# Buffer [ms]
|
|
buffer = 1000
|
|
|
|
# Send audio to muted clients
|
|
#send_to_muted = false
|
|
#
|
|
###############################################################################
|
|
|
|
|
|
# Logging options #############################################################
|
|
#
|
|
[logging]
|
|
|
|
# enable debug logging
|
|
#debug = false
|
|
|
|
# log file name for the debug logs (debug must be enabled)
|
|
#debug_logfile =
|
|
#
|
|
###############################################################################
|