airtime.example.conf 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. # ----------------------------------------------------------------------
  2. # A I R T I M E C O N F I G U R A T I O N
  3. # ----------------------------------------------------------------------
  4. #
  5. # This is an example configuration for Airtime. If you just want to
  6. # get started with a basic Airtime setup, or don't know if you should
  7. # be reconfiguring any of the following values, just rename this file
  8. # to 'airtime.conf'.
  9. #
  10. # ----------------------------------------------------------------------
  11. # ----------------------------------------------------------------------
  12. # G E N E R A L S E T T I N G S
  13. # ----------------------------------------------------------------------
  14. #
  15. # These settings are used for Airtime's webserver configuration, and
  16. # for general-purpose properties.
  17. #
  18. # api_key: The API key for your Airtime installation.
  19. # The value is generated the first time you use Airtime.
  20. #
  21. # web_server_user: The default webserver user.
  22. # The default is www-data.
  23. #
  24. # base_url: The host name for your webserver.
  25. # The default is localhost.
  26. #
  27. # base_port: The port for your webserver.
  28. # The default is 80.
  29. #
  30. # base_dir: The root directory for your Airtime installation
  31. # on your webserver, relative to the base_url.
  32. # The default is /.
  33. #
  34. # cache_ahead_hours: How many hours ahead of time the Airtime playout
  35. # engine (pypo) should cache scheduled media files.
  36. # The default is 1.
  37. #
  38. [general]
  39. api_key =
  40. web_server_user = www-data
  41. base_url = localhost
  42. base_port = 80
  43. base_dir = /
  44. cache_ahead_hours = 1
  45. #
  46. # ----------------------------------------------------------------------
  47. # ----------------------------------------------------------------------
  48. # D A T A B A S E
  49. # ----------------------------------------------------------------------
  50. #
  51. # These settings are used to configure your database connection.
  52. #
  53. # host: The hostname of the database server.
  54. # On a default Airtime installation, set this to localhost.
  55. #
  56. # dbname: The name of the Airtime database.
  57. # The default is airtime.
  58. #
  59. # dbuser: The username for the Airtime database user.
  60. # The default is airtime.
  61. #
  62. # dbpass: The password for the Airtime database user.
  63. # The default is airtime.
  64. #
  65. [database]
  66. host = localhost
  67. dbname = airtime
  68. dbuser = airtime
  69. dbpass = airtime
  70. #
  71. # ----------------------------------------------------------------------
  72. # ----------------------------------------------------------------------
  73. # R A B B I T M Q
  74. # ----------------------------------------------------------------------
  75. #
  76. # These settings are used to configure the RabbitMQ messaging
  77. # configuration for your Airtime installation.
  78. #
  79. # host: The IP address for the RabbitMQ service.
  80. # The default is 127.0.0.1.
  81. #
  82. # port: The port for the RabbitMQ service.
  83. # The default is 5672.
  84. #
  85. # user: The username for the RabbitMQ user.
  86. # The default is airtime.
  87. #
  88. # password: The password for the RabbitMQ user.
  89. # The default is airtime.
  90. #
  91. # vhost: The virtual host for the RabbitMQ service database.
  92. # The default is /airtime.
  93. #
  94. [rabbitmq]
  95. host = 127.0.0.1
  96. port = 5672
  97. user = airtime
  98. password = airtime
  99. vhost = /airtime
  100. #
  101. # ----------------------------------------------------------------------
  102. # ----------------------------------------------------------------------
  103. # M E D I A M O N I T O R
  104. # ----------------------------------------------------------------------
  105. #
  106. # check_filesystem_events: How long to queue up events performed on the
  107. # files themselves, in seconds
  108. # The default is 5
  109. #
  110. # check_airtime_events: How long to queue metadata input from airtime,
  111. # in seconds
  112. # The default is 30
  113. #
  114. # touch_interval:
  115. # The default is 5
  116. #
  117. # chunking_number:
  118. # The default is 450
  119. #
  120. # request_max_wait: The maximum request wait time, in seconds
  121. # The default is 3.0
  122. #
  123. # rmq_event_wait: The RabbitMQ event wait time, in seconds
  124. # The default is 0.1
  125. #
  126. # logpath: The media monitor log file path
  127. # The default is '/var/log/airtime/media-monitor/media-monitor.log'
  128. #
  129. # index_path: The media monitor index path
  130. # The default is '/var/tmp/airtime/media-monitor/last_index'
  131. #
  132. [media-monitor]
  133. check_filesystem_events = 5
  134. check_airtime_events = 30
  135. touch_interval = 5
  136. chunking_number = 450
  137. request_max_wait = 3.0
  138. rmq_event_wait = 0.1
  139. logpath = '/var/log/airtime/media-monitor/media-monitor.log'
  140. index_path = '/var/tmp/airtime/media-monitor/last_index'
  141. #
  142. # ----------------------------------------------------------------------
  143. # ----------------------------------------------------------------------
  144. # P Y P O
  145. # ----------------------------------------------------------------------
  146. #
  147. # api_client: Set the type of client you are using.
  148. # Currently supported types:
  149. # 1) 'obp' = Open Broadcast Platform
  150. # 2) 'airtime'
  151. # The default is 'airtime'
  152. #
  153. # cache_dir: The directory for pypo cache files
  154. # The default is '/var/tmp/airtime/pypo/cache/'
  155. #
  156. # file_dir: The directory for pypo media files
  157. # The default is '/var/tmp/airtime/pypo/files/'
  158. #
  159. # tmp_dir: The directory for pypo temp files
  160. # The default is '/var/tmp/airtime/pypo/tmp/'
  161. #
  162. # cache_base_dir: The pypo base cache directory
  163. # The default is '/var/tmp/airtime/pypo/'
  164. #
  165. # log_base_dir: The base directory for Airtime log files
  166. # The default is '/var/log/airtime'
  167. #
  168. # pypo_log_dir: The directory for pypo log files
  169. # The default is '/var/log/airtime/pypo'
  170. #
  171. # liquidsoap_log_dir: The directory for liquidsoap log files
  172. # The default is '/var/log/airtime/pypo-liquidsoap'
  173. #
  174. # ls_host: Liquidsoap connection host
  175. # The default is '127.0.0.1'
  176. #
  177. # ls_port: Liquidsoap connection port
  178. # The default is '1234'
  179. #
  180. # poll_interval: Poll interval in seconds
  181. #
  182. # This will rarely need to be changed because any schedule
  183. # changes are automatically sent to pypo immediately
  184. # This is how often the poll script downloads new schedules
  185. # and files from the server in the event that no changes
  186. # are made to the schedule
  187. # The default is 3600
  188. #
  189. # push_interval: Push interval in seconds
  190. #
  191. # This is how often the push script checks whether it has
  192. # something new to push to liquidsoap
  193. # The default is 1
  194. #
  195. # cue_style: Can be set to 'pre' or 'otf'
  196. # 'pre' cues while playlist preparation
  197. # 'otf' (on the fly) cues while loading into ls
  198. # (needs the post_processor patch)
  199. # The default is 'pre'
  200. #
  201. # record_bitrate: The bitrate for recordings
  202. # The default is 256
  203. #
  204. # record_samplerate: The samplerate for recordings
  205. # The default is 44100
  206. #
  207. # record_channels: The number of channels for recordings
  208. # The default is 2
  209. #
  210. # record_sample_size: The sample size for recordings
  211. # The default is 16
  212. #
  213. # record_file_type: Can be either ogg|mp3, mp3 recording requires
  214. # installation of the package "lame"
  215. # The default is ogg
  216. #
  217. # base_recorded_files: Base path to store recordered shows at
  218. # The default is '/var/tmp/airtime/show-recorder/'
  219. #
  220. [pypo]
  221. api_client = 'airtime'
  222. # ---------- Cache directories - !! Include trailing slash !! ----------
  223. cache_dir = '/var/tmp/airtime/pypo/cache/'
  224. file_dir = '/var/tmp/airtime/pypo/files/'
  225. tmp_dir = '/var/tmp/airtime/pypo/tmp/'
  226. # ------- Setup directories - !! Don't include trailing slash !! -------
  227. cache_base_dir = '/var/tmp/airtime/pypo'
  228. log_base_dir = '/var/log/airtime'
  229. pypo_log_dir = '/var/log/airtime/pypo'
  230. liquidsoap_log_dir = '/var/log/airtime/pypo-liquidsoap'
  231. # ------------------------ Liquidsoap Settings -------------------------
  232. ls_host = '127.0.0.1'
  233. ls_port = '1234'
  234. # -------------------------- Pypo Preferences --------------------------
  235. poll_interval = 3600
  236. push_interval = 1
  237. cue_style = 'pre'
  238. # ---------------------- Recorded Audio Settings -----------------------
  239. record_bitrate = 256
  240. record_samplerate = 44100
  241. record_channels = 2
  242. record_sample_size = 16
  243. record_file_type = 'ogg'
  244. base_recorded_files = '/var/tmp/airtime/show-recorder/'
  245. #
  246. # ----------------------------------------------------------------------
  247. # ----------------------------------------------------------------------
  248. # S O U N D C L O U D
  249. # ----------------------------------------------------------------------
  250. #
  251. # connection_retries: The number of times to retry the connection to
  252. # Soundcloud.
  253. # The default is 3.
  254. #
  255. # time_between_retries: The time between connection retries, in seconds.
  256. # The default is 60.
  257. #
  258. [soundcloud]
  259. connection_retries = 3
  260. time_between_retries = 60
  261. #
  262. # ----------------------------------------------------------------------