Ansible repo for digital ocean projects
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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