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