59 lines
2.2 KiB
Django/Jinja
59 lines
2.2 KiB
Django/Jinja
# THIS FILE IS AUTO GENERATED. PLEASE DO NOT EDIT!
|
|
###########################################################
|
|
# The ignore() lines are to squash unused variable warnings
|
|
|
|
# Inputs
|
|
master_live_stream_mp = "{{ config.stream.inputs.main.mount }}"
|
|
master_live_stream_port = {{ config.stream.inputs.main.port }}
|
|
dj_live_stream_mp = "{{ config.stream.inputs.show.mount }}"
|
|
dj_live_stream_port = {{ config.stream.inputs.show.port }}
|
|
|
|
{% for output in config.stream.outputs.merged -%}
|
|
# Output s{{ loop.index }}
|
|
s{{ loop.index }}_enable = {{ output.enabled | lower }}
|
|
s{{ loop.index }}_output = "{{ output.kind }}"
|
|
s{{ loop.index }}_host = "{{ output.host }}"
|
|
s{{ loop.index }}_port = {{ output.port }}
|
|
s{{ loop.index }}_mount = "{{ output.mount }}"
|
|
s{{ loop.index }}_user = "{{ output.source_user }}"
|
|
s{{ loop.index }}_pass = "{{ output.source_password }}"
|
|
|
|
s{{ loop.index }}_channels = "{{ output.audio.channels.value }}"
|
|
s{{ loop.index }}_type = "{{ output.audio.format.value }}"
|
|
s{{ loop.index }}_bitrate = {{ output.audio.bitrate }}
|
|
|
|
s{{ loop.index }}_name = "{{ output.name or '' }}"
|
|
s{{ loop.index }}_description = "{{ output.description or '' }}"
|
|
s{{ loop.index }}_genre = "{{ output.genre or '' }}"
|
|
s{{ loop.index }}_url = "{{ output.website or '' }}"
|
|
|
|
{% endfor -%}
|
|
icecast_vorbis_metadata = {{ icecast_vorbis_metadata | lower }}
|
|
|
|
# System output
|
|
output_sound_device = {{ config.stream.outputs.system[0].enabled | lower }}
|
|
output_sound_device_type = "{{ config.stream.outputs.system[0].kind.value }}"
|
|
|
|
# Settings
|
|
auth_path = "{{ paths.auth_filepath }}"
|
|
|
|
{% if paths.log_filepath is defined -%}
|
|
set("log.file.path", "{{ paths.log_filepath }}")
|
|
{%- else -%}
|
|
set("log.file", false)
|
|
{%- endif %}
|
|
|
|
set("server.telnet", true)
|
|
set("server.telnet.bind_addr", "{{ config.liquidsoap.server_listen_address }}")
|
|
set("server.telnet.port", {{ config.liquidsoap.server_listen_port }})
|
|
|
|
set("harbor.bind_addrs", ["{{ config.liquidsoap.harbor_listen_address | join('", "') }}"])
|
|
|
|
station_name = ref "{{ info.station_name }}"
|
|
|
|
off_air_meta = ref "{{ preferences.message_offline }}"
|
|
stream_metadata_type = ref {{ preferences.message_format.value }}
|
|
default_dj_fade = ref {{ preferences.input_fade_transition }}
|
|
|
|
%include "{{ paths.lib_filepath }}"
|