In looking at the config here is what you will need to update / change:
- Update the bin/snapserver.start file adding the option “--http.enabled 1” to the snapserver startup line, the addon files can be found in “/storage/.kodi/addons/service.snapserver“.
For bonus points: update settings.xml and strings.po using variables to enable / disable http. You could then submit this as a LibreELEC PR via github
Help details from snapserver
service.snapserver/bin # ./snapserver -hh
Allowed options:
-h, --help Produce help message, use -hh to show options from config file
-v, --version Show version number
-d, --daemon [=arg(=0)] Daemonize
optional process priority [-20..19]
-c, --config arg (=/etc/snapserver.conf)
path to the configuration file
Overridable config file options:
--server.threads arg (=-1) number of server threads
--server.pidfile arg (=/var/run/snapserver/pid)
pid file when running as daemon
--server.user arg (=snapserver) the user to run as when daemonized
--server.group [=arg(=)] the group to run as when daemonized
--server.datadir [=arg(=)] directory where persistent data is stored
--http.enabled arg (=1) enable HTTP Json RPC (HTTP POST and websockets)
--http.port arg (=1780) which port the server should listen on
--http.bind_to_address arg (=0.0.0.0)
address for the server to listen on
--http.doc_root [=arg(=)] serve a website from the doc_root location
--tcp.enabled arg (=1) enable TCP Json RPC)
--tcp.port arg (=1705) which port the server should listen on
--tcp.bind_to_address arg (=0.0.0.0)
address for the server to listen on
--stream.bind_to_address arg (=0.0.0.0)
address for the server to listen on
--stream.port arg (=1704) which port the server should listen on
--stream.stream arg (=pipe:///tmp/snapfifo?name=default)
Deprecated: use stream.source
--stream.source arg (=pipe:///tmp/snapfifo?name=default)
URI of the PCM input stream.
Format: TYPE://host/path?name=NAME
[&codec=CODEC]
[&sampleformat=SAMPLEFORMAT]
--stream.sampleformat arg (=48000:16:2)
Default sample format
--stream.codec arg (=flac) Default transport codec
(flac|ogg|opus|pcm)[:options]
Type codec:? to get codec specific options
--stream.stream_buffer arg (=20) Default stream read chunk size [ms], deprecated, use stream.chunk_ms instead
--stream.chunk_ms arg (=20) Default stream read chunk size [ms]
--stream.buffer arg (=1000) Buffer [ms]
--stream.send_to_muted arg (=0) Send audio to muted clients
--logging.sink arg log sink [null,system,stdout,stderr,file:<filename>]
--logging.filter arg (=*:info) log filter <tag>:<level>[,<tag>:<level>]* with tag = * or <log tag> and level = [trace,debug,info,notice,warning,error,fatal]
Display More