Ansible repo for digital ocean projects
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

mpdf.conf.j2 16 KiB

hace 2 años
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  1. # An example configuration file for MPD
  2. # See the mpd.conf man page for a more detailed description of each parameter.
  3. # Files and directories #######################################################
  4. #
  5. # This setting controls the top directory which MPD will search to discover the
  6. # available audio files and add them to the daemon's online database. This
  7. # setting defaults to the XDG directory, otherwise the music directory will be
  8. # be disabled and audio files will only be accepted over ipc socket (using
  9. # file:// protocol) or streaming files over an accepted protocol.
  10. #
  11. #######need to fix this one too
  12. music_directory "https://home.thrace-lan.info:44300/MUSIC/"
  13. database {
  14. # plugin "simple"
  15. plugin "proxy"
  16. host "{{ droplets.data[0].networks.v4[0].ip_address }}"
  17. port "6600"
  18. password "HelloKitty"
  19. #path "{{ [path,item,'/db']|join() }}"
  20. keepalive "yes"
  21. }
  22. #music_directory
  23. #
  24. # This setting sets the MPD internal playlist directory. The purpose of this
  25. # directory is storage for playlists created by MPD. The server will use
  26. # playlist files not created by the server but only if they are in the MPD
  27. # format. This setting defaults to playlist saving being disabled.
  28. #
  29. playlist_directory "{{ [path,item,playlist_directory]|join() }}"
  30. #
  31. # This setting sets the location of the MPD database. This file is used to
  32. # load the database at server start up and store the database while the
  33. # server is not up. This setting defaults to disabled which will allow
  34. # MPD to accept files over ipc socket (using file:// protocol) or streaming
  35. # files over an accepted protocol.
  36. #
  37. #db_file "{{ [path,item,db_file]|join() }}"
  38. #
  39. # These settings are the locations for the daemon log files for the daemon.
  40. # These logs are great for troubleshooting, depending on your log_level
  41. # settings.
  42. #
  43. # The special value "syslog" makes MPD use the local syslog daemon. This
  44. # setting defaults to logging to syslog, otherwise logging is disabled.
  45. #
  46. log_file "{{ [log_dir,'mpd',item,'.log']|join() }}"
  47. #
  48. # This setting sets the location of the file which stores the process ID
  49. # for use of mpd --kill and some init scripts. This setting is disabled by
  50. # default and the pid file will not be stored.
  51. #
  52. pid_file "{{ [path,item,'/',pid_file]|join() }}"
  53. #
  54. # This setting sets the location of the file which contains information about
  55. # most variables to get MPD back into the same general shape it was in before
  56. # it was brought down. This setting is disabled by default and the server
  57. # state will be reset on server start up.
  58. #
  59. state_file "{{ [path,item,'/',state_file,]|join() }}"
  60. #
  61. # The location of the sticker database. This is a database which
  62. # manages dynamic information attached to songs.
  63. #
  64. sticker_file "{{ [path,item,'/',sticker_file,'.sql']|join() }}"
  65. ###############################################################################
  66. # General music daemon options ################################################
  67. #
  68. # This setting specifies the user that MPD will run as. MPD should never run as
  69. # root and you may use this setting to make MPD change its user ID after
  70. # initialization. This setting is disabled by default and MPD is run as the
  71. # current user.
  72. #
  73. user "{{ user }}"
  74. #
  75. # This setting specifies the group that MPD will run as. If not specified
  76. # primary group of user specified with "user" setting will be used (if set).
  77. # This is useful if MPD needs to be a member of group such as "audio" to
  78. # have permission to use sound card.
  79. #
  80. #group "nogroup"
  81. group "{{ group }}"
  82. #
  83. # This setting sets the address for the daemon to listen on. Careful attention
  84. # should be paid if this is assigned to anything other then the default, any.
  85. # This setting can deny access to control of the daemon. Choose any if you want
  86. # to have mpd listen on every address
  87. #
  88. # For network
  89. bind_to_address "{{ bind_to_address }}"
  90. #
  91. # And for Unix Socket
  92. #bind_to_address "/var/run/mpd/socket"
  93. #
  94. # This setting is the TCP port that is desired for the daemon to get assigned
  95. # to.
  96. #
  97. #port "6600"
  98. port "{{ mpdport + item }}"
  99. #
  100. # This setting controls the type of information which is logged. Available
  101. # setting arguments are "default", "secure" or "verbose". The "verbose" setting
  102. # argument is recommended for troubleshooting, though can quickly stretch
  103. # available resources on limited hardware storage.
  104. #
  105. #log_level "verbose"
  106. log_level "{{ log_level }}"
  107. #
  108. # If you have a problem with your MP3s ending abruptly it is recommended that
  109. # you set this argument to "no" to attempt to fix the problem. If this solves
  110. # the problem, it is highly recommended to fix the MP3 files with vbrfix
  111. # (available as vbrfix in the debian archive), at which
  112. # point gapless MP3 playback can be enabled.
  113. #
  114. #gapless_mp3_playback "yes"
  115. #gapless_mp3_playback "{{ gapless_mp3_playback }}"
  116. #
  117. # This setting enables MPD to create playlists in a format usable by other
  118. # music players.
  119. #
  120. #save_absolute_paths_in_playlists "no"
  121. save_absolute_paths_in_playlists "{{ save_absolute_paths_in_playlists }}"
  122. #
  123. # This setting defines a list of tag types that will be extracted during the
  124. # audio file discovery process. Optionally, 'comment' can be added to this
  125. # list.
  126. #
  127. #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
  128. metadata_to_use "{{ metadata_to_use }}"
  129. #
  130. # This setting enables automatic update of MPD's database when files in
  131. # music_directory are changed.
  132. #
  133. #auto_update "yes"
  134. auto_update "{{ auto_update }}"
  135. #
  136. # Limit the depth of the directories being watched, 0 means only watch
  137. # the music directory itself. There is no limit by default.
  138. #
  139. #auto_update_depth "3"
  140. auto_update_depth "{{ auto_update_depth }}"
  141. #
  142. ###############################################################################
  143. # Symbolic link behavior ######################################################
  144. #
  145. # If this setting is set to "yes", MPD will discover audio files by following
  146. # symbolic links outside of the configured music_directory.
  147. #
  148. #follow_outside_symlinks "yes"
  149. follow_outside_symlinks "{{ follow_outside_symlinks }}"
  150. #
  151. # If this setting is set to "yes", MPD will discover audio files by following
  152. # symbolic links inside of the configured music_directory.
  153. #
  154. #follow_inside_symlinks "yes"
  155. follow_inside_symlinks "{{ follow_inside_symlinks }}"
  156. #
  157. ###############################################################################
  158. # Zeroconf / Avahi Service Discovery ##########################################
  159. #
  160. # If this setting is set to "yes", service information will be published with
  161. # Zeroconf / Avahi.
  162. #
  163. #zeroconf_enabled "yes"
  164. zeroconf_enabled "{{ zeroconf_enabled }}"
  165. #
  166. # The argument to this setting will be the Zeroconf / Avahi unique name for
  167. # this MPD server on the network.
  168. #
  169. #zeroconf_name "Music Player"
  170. zeroconf_name "{{ zeroconf_name }}"
  171. #
  172. ###############################################################################
  173. # Permissions #################################################################
  174. #
  175. # If this setting is set, MPD will require password authorization. The password
  176. # can setting can be specified multiple times for different password profiles.
  177. #
  178. password "HelloKitty@read,add,control,admin"
  179. #
  180. # This setting specifies the permissions a user has who has not yet logged in.
  181. #
  182. #default_permissions "read,add,control,admin"
  183. default_permissions "{{ default_permissions }}"
  184. #
  185. ###############################################################################
  186. # Input #######################################################################
  187. #
  188. #input {
  189. # plugin "curl"
  190. # proxy "proxy.isp.com:8080"
  191. # proxy_user "user"
  192. # proxy_password "password"
  193. #}
  194. #
  195. ###############################################################################
  196. # Audio Output ################################################################
  197. #
  198. # MPD supports various audio output types, as well as playing through multiple
  199. # audio outputs at the same time, through multiple audio_output settings
  200. # blocks. Setting this block is optional, though the server will only attempt
  201. # autodetection for one sound card.
  202. #
  203. # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
  204. # other audio outputs.
  205. #
  206. # An example of an ALSA output:
  207. #
  208. #audio_output {
  209. # type "alsa"
  210. # name "My ALSA Device"
  211. # device "hw:0,0" # optional
  212. # format "44100:16:2" # optional
  213. # mixer_device "default" # optional
  214. # mixer_control "PCM" # optional
  215. # mixer_index "0" # optional
  216. #}
  217. #
  218. # An example of an OSS output:
  219. #
  220. #audio_output {
  221. # type "oss"
  222. # name "My OSS Device"
  223. # device "/dev/dsp" # optional
  224. # format "44100:16:2" # optional
  225. # mixer_device "/dev/mixer" # optional
  226. # mixer_control "PCM" # optional
  227. #}
  228. #
  229. # An example of a shout output (for streaming to Icecast):
  230. #
  231. #audio_output {
  232. # type "shout"
  233. # encoding "ogg" # optional
  234. # name "My Shout Stream"
  235. # host "localhost"
  236. # port "8000"
  237. # mount "/mpd.ogg"
  238. # password "hackme"
  239. # quality "5.0"
  240. # bitrate "128"
  241. # format "44100:16:1"
  242. # protocol "icecast2" # optional
  243. # user "source" # optional
  244. # description "My Stream Description" # optional
  245. # genre "jazz" # optional
  246. # public "no" # optional
  247. # timeout "2" # optional
  248. #}
  249. #
  250. # An example of a recorder output:
  251. #
  252. #audio_output {
  253. # type "recorder"
  254. # name "My recorder"
  255. # encoder "vorbis" # optional, vorbis or lame
  256. # path "/var/lib/mpd/recorder/mpd.ogg"
  257. ## quality "5.0" # do not define if bitrate is defined
  258. # bitrate "128" # do not define if quality is defined
  259. # format "44100:16:1"
  260. #}
  261. #
  262. audio_output {
  263. type "httpd"
  264. always_on "yes"
  265. enabled "yes"
  266. name "{{ stream }}"
  267. encoder "lame" # optional, vorbis or lame
  268. port "{{ stream_port + item }}"
  269. bind_to_address "{{ bind_address }}" # optional, IPv4 or IPv6
  270. quality "3.0" # do not define if bitrate is defined
  271. # bitrate "128" # do not define if quality is defined
  272. # format "44100:16:1"
  273. max_clients "0" # optional 0=no limit
  274. }
  275. #cache songs on the server
  276. input_cache {
  277. size "1 GB"
  278. }
  279. # An example of a pulseaudio output (streaming to a remote pulseaudio server)
  280. #
  281. #audio_output {
  282. # type "pulse"
  283. # name "My Pulse Output"
  284. # server "remote_server" # optional
  285. # sink "remote_server_sink" # optional
  286. #}
  287. #
  288. ## Example "pipe" output:
  289. #
  290. #audio_output {
  291. # type "pipe"
  292. # name "my pipe"
  293. # command "aplay -f cd 2>/dev/null"
  294. ## Or if you're want to use AudioCompress
  295. # command "AudioCompress -m | aplay -f cd 2>/dev/null"
  296. ## Or to send raw PCM stream through PCM:
  297. # command "nc example.org 8765"
  298. # format "44100:16:2"
  299. #}
  300. #
  301. ## An example of a null output (for no audio output):
  302. #
  303. #audio_output {
  304. # type "null"
  305. # name "My Null Output"
  306. #}
  307. #
  308. # This setting will change all decoded audio to be converted to the specified
  309. # format before being passed to the audio outputs. By default, this setting is
  310. # disabled.
  311. #
  312. #audio_output_format "44100:16:2"
  313. #
  314. # If MPD has been compiled with libsamplerate support, this setting specifies
  315. # the sample rate converter to use. Possible values can be found in the
  316. # mpd.conf man page or the libsamplerate documentation. By default, this is
  317. # setting is disabled.
  318. #
  319. #samplerate_converter "Fastest Sinc Interpolator"
  320. #
  321. ###############################################################################
  322. ###############################################################################
  323. # Volume control mixer ########################################################
  324. #
  325. # These are the global volume control settings. By default, this setting will
  326. # be detected to the available audio output device, with preference going to
  327. # hardware mixing. Hardware and software mixers for individual audio_output
  328. # sections cannot yet be mixed.
  329. #
  330. # An example for controlling an ALSA, OSS or Pulseaudio mixer; If this
  331. # setting is used other sound applications will be affected by the volume
  332. # being controlled by MPD.
  333. #
  334. #mixer_type "hardware"
  335. #
  336. # An example for controlling all mixers through software. This will control
  337. # all controls, even if the mixer is not supported by the device and will not
  338. # affect any other sound producing applications.
  339. #
  340. #mixer_type "software"
  341. #
  342. # This example will not allow MPD to touch the mixer at all and will disable
  343. # all volume controls.
  344. #
  345. #mixer_type "disabled"
  346. #
  347. mixer_type "{{ mixer_type }}"
  348. ###############################################################################
  349. # Normalization automatic volume adjustments ##################################
  350. #
  351. # This setting specifies the type of ReplayGain to use. This setting can have
  352. # the argument "album" or "track". See <http://www.replaygain.org> for more
  353. # details. This setting is disabled by default.
  354. #
  355. #replaygain "album"
  356. replaygain "{{ replaygain }}"
  357. #
  358. # This setting sets the pre-amp used for files that have ReplayGain tags. By
  359. # default this setting is disabled.
  360. #
  361. #replaygain_preamp "0"
  362. replaygain_preamp "{{ replaygain_preamp }}"
  363. #
  364. # This setting enables on-the-fly normalization volume adjustment. This will
  365. # result in the volume of all playing audio to be adjusted so the output has
  366. # equal "loudness". This setting is disabled by default.
  367. #
  368. #volume_normalization "no"
  369. volume_normalization "{{ volume_normalization }}"
  370. #
  371. ###############################################################################
  372. # MPD Internal Buffering ######################################################
  373. #
  374. # This setting adjusts the size of internal decoded audio buffering. Changing
  375. # this may have undesired effects. Don't change this if you don't know what you
  376. # are doing.
  377. #
  378. #audio_buffer_size "2048"
  379. audio_buffer_size "{{ audio_buffer_size }}"
  380. #
  381. # This setting controls the percentage of the buffer which is filled before
  382. # beginning to play. Increasing this reduces the chance of audio file skipping,
  383. # at the cost of increased time prior to audio playback.
  384. #
  385. #buffer_before_play "10%"
  386. #buffer_before_play "{{ buffer_before_play }}"
  387. #
  388. ###############################################################################
  389. # Resource Limitations ########################################################
  390. #
  391. # These settings are various limitations to prevent MPD from using too many
  392. # resources. Generally, these settings should be minimized to prevent security
  393. # risks, depending on the operating resources.
  394. #
  395. #connection_timeout "60"
  396. #max_connections "10"
  397. #max_playlist_length "16384"
  398. #max_command_list_size "2048"
  399. max_output_buffer_size "32768"
  400. #
  401. ###############################################################################
  402. # Character Encoding ##########################################################
  403. #
  404. # If file or directory names do not display correctly for your locale then you
  405. # may need to modify this setting. After modification of this setting mpd
  406. # --create-db must be run to change the database.
  407. #
  408. filesystem_charset "UTF-8"
  409. #
  410. # This setting controls the encoding that ID3v1 tags should be converted from.
  411. #
  412. #id3v1_encoding "UTF-8"
  413. #
  414. ###############################################################################
  415. # SIDPlay decoder #############################################################
  416. #
  417. # songlength_database:
  418. # Location of your songlengths file, as distributed with the HVSC.
  419. # The sidplay plugin checks this for matching MD5 fingerprints.
  420. # See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
  421. #
  422. # default_songlength:
  423. # This is the default playing time in seconds for songs not in the
  424. # songlength database, or in case you're not using a database.
  425. # A value of 0 means play indefinitely.
  426. #
  427. # filter:
  428. # Turns the SID filter emulation on or off.
  429. #
  430. #decoder {
  431. # plugin "sidplay"
  432. # songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt"
  433. # default_songlength "120"
  434. # filter "true"
  435. #}
  436. #
  437. ###############################################################################