Ansible repo for digital ocean projects
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

mpdf.conf.j2 16 KiB

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