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

feat: more telnet server settings

parent e3c52178
No related branches found
No related tags found
No related merge requests found
Pipeline #2793 passed
...@@ -19,6 +19,10 @@ liquidsoap_as_root="true" ...@@ -19,6 +19,10 @@ 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_server_port=1234
# telnet_server_timeout=60
[fallback] [fallback]
......
...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
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_server_host=127.0.0.1
# telnet_server_port=1234
# telnet_server_timeout=60
[fallback] [fallback]
......
...@@ -19,6 +19,9 @@ AURA_ENGINE_FRAME_SAMPLERATE= ...@@ -19,6 +19,9 @@ 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
AURA_ENGINE_TELNET_PORT=1234
AURA_ENGINE_TELNET_SERVER_TIMEOUT=60
# Stream Input Settings # Stream Input Settings
AURA_ENGINE_STREAM_INPUT_MAX_BUFFER=5.0 AURA_ENGINE_STREAM_INPUT_MAX_BUFFER=5.0
......
...@@ -46,11 +46,13 @@ settings.console.colorize.set("always") ...@@ -46,11 +46,13 @@ settings.console.colorize.set("always")
#settings.request.grace_time.set(2.) #settings.request.grace_time.set(2.)
# TELNET SETTINGS # TELNET SETTINGS
server_timeout = float_of_string(get_setting("60.", "server_timeout", "AURA_ENGINE_TELNET_SERVER_TIMEOUT")) telnet_server_host = get_setting("127.0.0.1", "telnet_host", "AURA_ENGINE_TELNET_HOST")
settings.server.timeout.set(server_timeout) telnet_server_port = int_of_string(get_setting("1234", "telnet_port", "AURA_ENGINE_TELNET_PORT"))
telnet_server_timeout = float_of_string(get_setting("60.", "telnet_server_timeout", "AURA_ENGINE_TELNET_SERVER_TIMEOUT"))
settings.server.telnet.set(true) settings.server.telnet.set(true)
settings.server.telnet.bind_addr.set("0.0.0.0") settings.server.telnet.bind_addr.set(telnet_server_host)
settings.server.telnet.port.set(1234) settings.server.telnet.port.set(telnet_server_port)
settings.server.timeout.set(telnet_server_timeout)
# LOG SETTINGS # LOG SETTINGS
engine_version = process.read("cat ../VERSION") engine_version = process.read("cat ../VERSION")
......
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