Skip to content
Snippets Groups Projects
Commit 9dcd3805 authored by David Trattnig's avatar David Trattnig
Browse files

feat: ability to disable telnet server

parent 9cbd2d67
No related branches found
No related tags found
No related merge requests found
Pipeline #2804 passed
...@@ -19,8 +19,12 @@ liquidsoap_as_root="true" ...@@ -19,8 +19,12 @@ liquidsoap_as_root="true"
api_url_playlog="http://0.0.0.0:8008/api/v1/playlog" api_url_playlog="http://0.0.0.0:8008/api/v1/playlog"
# This is the folder where fallback playlists are read from (optional) # This is the folder where fallback playlists are read from (optional)
audio_playlist_folder="/var/audio/playlist" audio_playlist_folder="/var/audio/playlist"
# Telnet Server
# telnet_server_host=172.17.0.1
[telnet]
##################################################################################################
# telnet_server_enable=true
# telnet_server_host=0.0.0.0
# telnet_server_port=1234 # telnet_server_port=1234
# telnet_server_timeout=60 # telnet_server_timeout=60
......
...@@ -19,7 +19,11 @@ ...@@ -19,7 +19,11 @@
api_url_playlog="http://127.0.0.1:8008/api/v1/playlog" api_url_playlog="http://127.0.0.1:8008/api/v1/playlog"
# This is the folder where fallback playlists are read from (optional) # This is the folder where fallback playlists are read from (optional)
; audio_playlist_folder="../audio/playlist" ; audio_playlist_folder="../audio/playlist"
# Telnet Server
[telnet]
##################################################################################################
# telnet_server_enable=true
# telnet_server_host=127.0.0.1 # telnet_server_host=127.0.0.1
# telnet_server_port=1234 # telnet_server_port=1234
# telnet_server_timeout=60 # telnet_server_timeout=60
......
...@@ -19,7 +19,10 @@ AURA_ENGINE_FRAME_SAMPLERATE= ...@@ -19,7 +19,10 @@ AURA_ENGINE_FRAME_SAMPLERATE=
AURA_ENGINE_FRAME_DURATION= AURA_ENGINE_FRAME_DURATION=
AURA_ENGINE_FRAME_SIZE= AURA_ENGINE_FRAME_SIZE=
AURA_ENGINE_API_URL_PLAYLOG=http://172.17.0.1:8008/api/v1/playlog AURA_ENGINE_API_URL_PLAYLOG=http://172.17.0.1:8008/api/v1/playlog
AURA_ENGINE_TELNET_HOST=172.17.0.1
# Telnet Settings
AURA_ENGINE_TELNET_ENABLE=true
AURA_ENGINE_TELNET_HOST=0.0.0.0
AURA_ENGINE_TELNET_PORT=1234 AURA_ENGINE_TELNET_PORT=1234
AURA_ENGINE_TELNET_SERVER_TIMEOUT=60. AURA_ENGINE_TELNET_SERVER_TIMEOUT=60.
......
...@@ -86,14 +86,19 @@ else ...@@ -86,14 +86,19 @@ else
end end
# TELNET SETTINGS # TELNET SETTINGS
telnet_server_enable = get_setting("true", "telnet_server_enable", "AURA_ENGINE_TELNET_ENABLE")
telnet_server_host = get_setting("127.0.0.1", "telnet_server_host", "AURA_ENGINE_TELNET_HOST") telnet_server_host = get_setting("127.0.0.1", "telnet_server_host", "AURA_ENGINE_TELNET_HOST")
telnet_server_port = int_of_string(get_setting("1234", "telnet_server_port", "AURA_ENGINE_TELNET_PORT")) telnet_server_port = int_of_string(get_setting("1234", "telnet_server_port", "AURA_ENGINE_TELNET_PORT"))
telnet_server_timeout = float_of_string(get_setting("60.", "telnet_server_timeout", "AURA_ENGINE_TELNET_SERVER_TIMEOUT")) telnet_server_timeout = float_of_string(get_setting("60.", "telnet_server_timeout", "AURA_ENGINE_TELNET_SERVER_TIMEOUT"))
log("\tTelnet server at #{telnet_server_host}:#{telnet_server_port} (#{telnet_server_timeout}s timeout)") if telnet_server_enable != "true" then
settings.server.telnet.bind_addr.set(telnet_server_host) log("\tTelnet server disabled")
settings.server.telnet.port.set(telnet_server_port) else
settings.server.timeout.set(telnet_server_timeout) log("\tTelnet server at #{telnet_server_host}:#{telnet_server_port} (#{telnet_server_timeout}s timeout)")
settings.server.telnet.set(true) settings.server.telnet.bind_addr.set(telnet_server_host)
settings.server.telnet.port.set(telnet_server_port)
settings.server.timeout.set(telnet_server_timeout)
settings.server.telnet.set(true)
end
# SOUND CARD SETTINGS # SOUND CARD SETTINGS
# settings.audio.converter.samplerate.converters.set(["ffmpeg","libsamplerate","native"]) # settings.audio.converter.samplerate.converters.set(["ffmpeg","libsamplerate","native"])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment