Ansible repo for digital ocean projects
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

462 lignes
15 KiB

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