2014-11-28 00:48:03 +01:00
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
# A I R T I M E C O N F I G U R A T I O N
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# This is an example configuration for Airtime. If you just want to
|
|
|
|
# get started with a basic Airtime setup, or don't know if you should
|
|
|
|
# be reconfiguring any of the following values, just rename this file
|
|
|
|
# to 'airtime.conf'.
|
|
|
|
#
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
2014-12-16 18:24:41 +01:00
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
# G E N E R A L S E T T I N G S
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# These settings are used for Airtime's webserver configuration, and
|
|
|
|
# for general-purpose properties.
|
|
|
|
#
|
|
|
|
# api_key: The API key for your Airtime installation.
|
|
|
|
# The value is generated the first time you use Airtime.
|
|
|
|
#
|
|
|
|
# web_server_user: The default webserver user.
|
|
|
|
# The default is www-data.
|
|
|
|
#
|
|
|
|
# base_url: The host name for your webserver.
|
|
|
|
# The default is localhost.
|
|
|
|
#
|
|
|
|
# base_port: The port for your webserver.
|
|
|
|
# The default is 80.
|
|
|
|
#
|
|
|
|
# base_dir: The root directory for your Airtime installation
|
|
|
|
# on your webserver, relative to the base_url.
|
|
|
|
# The default is /.
|
|
|
|
#
|
|
|
|
# cache_ahead_hours: How many hours ahead of time the Airtime playout
|
|
|
|
# engine (PYPO) should cache scheduled media files.
|
|
|
|
# The default is 1.
|
|
|
|
#
|
|
|
|
[general]
|
|
|
|
api_key =
|
|
|
|
web_server_user = www-data
|
|
|
|
base_url = localhost
|
|
|
|
base_port = 80
|
|
|
|
base_dir = /
|
|
|
|
cache_ahead_hours = 1
|
|
|
|
#
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
2014-11-28 00:48:03 +01:00
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
# D A T A B A S E
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# These settings are used to configure your database connection.
|
|
|
|
#
|
|
|
|
# host: The hostname of the database server.
|
|
|
|
# On a default Airtime installation, set this to localhost.
|
|
|
|
#
|
|
|
|
# dbname: The name of the Airtime database.
|
|
|
|
# The default is airtime.
|
|
|
|
#
|
|
|
|
# dbuser: The username for the Airtime database user.
|
|
|
|
# The default is airtime.
|
|
|
|
#
|
|
|
|
# dbpass: The password for the Airtime database user.
|
|
|
|
# The default is airtime.
|
|
|
|
#
|
|
|
|
[database]
|
|
|
|
host = localhost
|
|
|
|
dbname = airtime
|
|
|
|
dbuser = airtime
|
|
|
|
dbpass = airtime
|
|
|
|
#
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
# R A B B I T M Q
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# These settings are used to configure the RabbitMQ messaging
|
|
|
|
# configuration for your Airtime installation.
|
|
|
|
#
|
|
|
|
# host: The IP address for the RabbitMQ service.
|
|
|
|
# The default is 127.0.0.1.
|
|
|
|
#
|
|
|
|
# port: The port for the RabbitMQ service.
|
|
|
|
# The default is 5672.
|
|
|
|
#
|
|
|
|
# user: The username for the RabbitMQ user.
|
2014-12-04 00:04:47 +01:00
|
|
|
# The default is airtime.
|
2014-11-28 00:48:03 +01:00
|
|
|
#
|
|
|
|
# password: The password for the RabbitMQ user.
|
2014-12-04 00:04:47 +01:00
|
|
|
# The default is airtime.
|
2014-11-28 00:48:03 +01:00
|
|
|
#
|
|
|
|
# vhost: The virtual host for the RabbitMQ service database.
|
2014-12-04 00:04:47 +01:00
|
|
|
# The default is /airtime.
|
2014-11-28 00:48:03 +01:00
|
|
|
#
|
|
|
|
[rabbitmq]
|
|
|
|
host = 127.0.0.1
|
|
|
|
port = 5672
|
2014-12-04 00:04:47 +01:00
|
|
|
user = airtime
|
|
|
|
password = airtime
|
|
|
|
vhost = /airtime
|
2014-11-28 00:48:03 +01:00
|
|
|
#
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
# ----------------------------------------------------------------------
|
2014-12-16 18:24:41 +01:00
|
|
|
# M O N I T
|
2014-11-28 00:48:03 +01:00
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
#
|
2014-12-16 18:24:41 +01:00
|
|
|
# monit_user: The username for the Monit user.
|
|
|
|
# The default is guest.
|
2014-11-28 00:48:03 +01:00
|
|
|
#
|
2014-12-16 18:24:41 +01:00
|
|
|
# monit_password: The password for the Monit user.
|
|
|
|
# The default is airtime.
|
2014-11-28 00:48:03 +01:00
|
|
|
#
|
2014-12-16 18:24:41 +01:00
|
|
|
[monit]
|
|
|
|
monit_user = guest
|
|
|
|
monit_password = airtime
|
2014-11-28 00:48:03 +01:00
|
|
|
#
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
# ----------------------------------------------------------------------
|
2014-12-16 18:24:41 +01:00
|
|
|
# M E D I A M O N I T O R
|
2014-11-28 00:48:03 +01:00
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
#
|
2014-12-16 18:24:41 +01:00
|
|
|
# api_client: ???
|
2014-11-28 00:48:03 +01:00
|
|
|
#
|
2014-12-16 18:24:41 +01:00
|
|
|
# bin_dir: Directory containing media monitor binaries
|
2014-11-28 00:48:03 +01:00
|
|
|
#
|
2014-12-16 18:24:41 +01:00
|
|
|
# log_dir: Directory containing media monitor log files
|
|
|
|
#
|
|
|
|
# check_filesystem_events: How long to queue up events performed on the
|
|
|
|
# files themselves
|
|
|
|
#
|
|
|
|
# check_airtime_events: How long to queue metadata input from airtime
|
|
|
|
#
|
|
|
|
# touch_interval
|
|
|
|
#
|
|
|
|
# chunking_number
|
|
|
|
#
|
|
|
|
# request_max_wait
|
|
|
|
#
|
|
|
|
# rmq_event_wait
|
|
|
|
#
|
|
|
|
# logpath
|
|
|
|
#
|
|
|
|
# index_path
|
|
|
|
#
|
|
|
|
[media-monitor]
|
|
|
|
api_client = "airtime"
|
|
|
|
check_filesystem_events = 5
|
|
|
|
check_airtime_events = 30
|
|
|
|
touch_interval = 5
|
|
|
|
chunking_number = 450
|
|
|
|
request_max_wait = 3.0
|
|
|
|
rmq_event_wait = 0.1
|
|
|
|
logpath = '/var/log/airtime/media-monitor/media-monitor.log'
|
|
|
|
index_path = '/var/tmp/airtime/media-monitor/last_index'
|
2014-11-28 00:48:03 +01:00
|
|
|
#
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
# S O U N D C L O U D
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# connection_retries: The number of times to retry the connection to
|
|
|
|
# Soundcloud.
|
|
|
|
# The default is 3.
|
|
|
|
#
|
|
|
|
# time_between_retries: The time between connection retries, in seconds.
|
|
|
|
# The default is 60.
|
|
|
|
#
|
|
|
|
[soundcloud]
|
|
|
|
connection_retries = 3
|
|
|
|
time_between_retries = 60
|
|
|
|
#
|
|
|
|
# ----------------------------------------------------------------------
|