Ansible repo for digital ocean projects
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

mpdf.conf.j2 16 KiB

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